Re: Stats interface - modelling on IndexedDB API?

On 08/30/2012 12:53 PM, Harald Alvestrand wrote:
> Hi,
>
> when implementing the Stats interface, I've concluded that it's not
> quite trivial to do it the way I'd written it up, due to the way WebKit
> hangs together.
>
> Would anyone mind terribly if I changed it around to do it the way the
> IndexedDB API does it?
>
> Basically, it seems to be:
>
> - Request returns a "request object" with a status and a result
> - When the data is ready, it fires a "success" event at the request object
> - The caller can then read the data out from the request object
I think the new approach you propose is better than the old one. It 
aligns with e.g. IndexDB and FileReader.

>
> http://www.w3.org/TR/IndexedDB/#idl-def-IDBRequest
>
> Seems a bit easier to get threaded through WebKit than the "simpler"
> method of "just" returning a complex structure in a callback.
>
>                        Harald
>
>

Received on Thursday, 30 August 2012 11:04:24 UTC