W3C home > Mailing lists > Public > www-dom@w3.org > January to March 2012

Re: [DOM4] EventTarget as first class citizen

From: Jake Verbaten <raynos2@gmail.com>
Date: Wed, 29 Feb 2012 18:21:21 +0000
Message-ID: <CAMCMjp2jvRJsvZ6BB94TFBtSR=YAG4AXE3U7qTHi5TmenZDdXA@mail.gmail.com>
To: Marcos Caceres <w3c@marcosc.com>
Cc: Anne van Kesteren <annevk@opera.com>, Jonas Sicking <jonas@sicking.cc>, www-dom@w3.org
>
> For 1, I don't know what that would look like, but something like
> ECMAScript's Object.create() would be a nice pattern:
>
> var et = EventTarget.create(someObject);


We don't actually need that, we just need to glare at browser vendors until
they implement the IDL. Once that is done then

`var et = Object.create(EventTarget.prototype)`

Should "just work" assuming the methods on EventTarget.prototype are
generic and flexible enough to work on any object.
Received on Wednesday, 29 February 2012 18:22:08 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:14:09 GMT