- From: Marcos Caceres <w3c@marcosc.com>
- Date: Wed, 29 Feb 2012 18:40:02 +0000
- To: Jake Verbaten <raynos2@gmail.com>
- Cc: Anne van Kesteren <annevk@opera.com>, Jonas Sicking <jonas@sicking.cc>, www-dom@w3.org
On Wednesday, February 29, 2012 at 6:21 PM, Jake Verbaten wrote: > > 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. Yes, that would be perfect. I guess I'm requesting explicitly to ensure that DOM4 defines "the methods on EventTarget.prototype are generic and flexible enough to work on any object".
Received on Wednesday, 29 February 2012 18:40:33 UTC