- From: Boris Zbarsky <bzbarsky@MIT.EDU>
- Date: Thu, 10 Oct 2013 21:22:58 -0400
- 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