W3C home > Mailing lists > Public > public-web-perf@w3.org > October 2013

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

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Thu, 10 Oct 2013 21:22:58 -0400
Message-ID: <525752F2.4080001@mit.edu>
To: Sreeram Ramachandran <sreeram@google.com>
CC: Arvind Jain <arvind@google.com>, Jatinder Mann <jmann@microsoft.com>, public-web-perf <public-web-perf@w3.org>
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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:04:37 UTC