Re: Alternative File API

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 UTC