On Mon, Aug 17, 2009 at 2:45 AM, Olli Pettay<olli.pet...@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