Re: [ResourceTiming] Handling of "resourcetimingbufferfull" events makes no sense

On 10/10/13 7:55 PM, Sreeram Ramachandran wrote:
> Can we instead use
> http://www.w3.org/TR/WebIDL/#idl-implements-statements, so the new
> spec has:
>      partial interface Performance {
>         ...
>      }
>      Performance implements EventTarget;
>
> So, window.performance.addEventListener(...) is still possible.

You can, but then you have to redefine all the event dispatch behavior 
yourself, since you're not inheriting it from EventTarget, as far as I 
can tell.

And what Jonas said about interfaces vs classes.

-Boris

Received on Friday, 11 October 2013 01:23:31 UTC