- From: Jonas Sicking <jonas@sicking.cc>
- Date: Thu, 10 Oct 2013 16:59:12 -0700
- To: Sreeram Ramachandran <sreeram@google.com>
- Cc: Boris Zbarsky <bzbarsky@mit.edu>, Arvind Jain <arvind@google.com>, Jatinder Mann <jmann@microsoft.com>, public-web-perf <public-web-perf@w3.org>
If you do that then EventTarget doesn't show up on the prototype chain. (It's a shame that WebIDL doesn't separate classes from interfaces. You should only be able to inherit classes and implement interfaces) On Thu, Oct 10, 2013 at 4:55 PM, Sreeram Ramachandran <sreeram@google.com> wrote: > On Tue, Oct 1, 2013 at 7:06 PM, Boris Zbarsky <bzbarsky@mit.edu> wrote: >> On 10/1/13 10:05 PM, Arvind Jain wrote: >>> >>> And re. Performance extending EventTarget, do we have to do it? >> >> If you want to fire events at it, then you do.... > > 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. >
Received on Friday, 11 October 2013 00:00:13 UTC