Re: [WebIDL] Simplify callbacks

On 11/08/2011 04:47 PM, Anne van Kesteren wrote:
> It seems that all callbacks use handleEvent() and we cannot change that
> at this point I think.

MutationObserver proposal has handleMutations(),
animationframes has sample(), IndexedDB has transactionStarted() etc.
So, no, all the callbacks don't use handleEvent(), and that is actually 
bad name for APIs which aren't handling events but some other data.




-Olli


> We should simplify callback syntax to a) make IDL
> easier to read and b) ensure consistency throughout the platform.
>
> addEventListener(DOMString type, Callback(Event)? listener, optional
> boolean capture)
>
>

Received on Tuesday, 8 November 2011 20:37:44 UTC