W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2009

Re: Alternative File API

From: Jonas Sicking <jonas@sicking.cc>
Date: Mon, 17 Aug 2009 22:43:03 -0700
Message-ID: <63df84f0908172243o352dd6d8rd7cf76c2993a0e89@mail.gmail.com>
To: Olli Pettay <Olli.Pettay@helsinki.fi>
Cc: Michael Nordman <michaeln@google.com>, Garrett Smith <dhtmlkitchen@gmail.com>, Webapps WG <public-webapps@w3.org>
On Mon, Aug 17, 2009 at 2:45 AM, Olli Pettay<Olli.Pettay@helsinki.fi> wrote:
> I'd do
> var reader = new DataReader(someDataObject, DataReader.BINARY);
> reader.onload =
>  function(evt) {
>    // grab the data using evt.target.getData();
>  };
> reader.read();

What's the advantage of this API over what I proposed? Seems like no
big difference, but choosing the reading method separate from the call
to the read function seems just to make the code less clear.

/ Jonas
Received on Tuesday, 18 August 2009 05:44:03 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:33 GMT