W3C home > Mailing lists > Public > whatwg@whatwg.org > April 2009

[whatwg] Exposing EventTarget to JavaScript

From: Aaron Boodman <aa@google.com>
Date: Fri, 24 Apr 2009 11:29:16 -0700
Message-ID: <278fd46c0904241129i280c25ffvb77becb16861c554@mail.gmail.com>
I like the basic idea, but I think drawing too much inspiration from
DOM events is a bad idea. What does it mean to "capture" a pure JS
event? Further, the DOM event model has problems. It would be nice if
events were first-class, not strings. It would be more idiomatic JS, I
would argue, to do someObject.onClick.add(<handler>).

- a
Received on Friday, 24 April 2009 11:29:16 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:11 UTC