- From: Jonas Sicking <jonas@sicking.cc>
- Date: Mon, 17 Aug 2009 22:43:03 -0700
- 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 UTC