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

[whatwg] Exposing EventTarget to JavaScript

From: Erik Arvidsson <erik.arvidsson@gmail.com>
Date: Fri, 24 Apr 2009 12:47:40 -0700
Message-ID: <6eeb8bd10904241247i382eded3s2e5dca29f5d65559@mail.gmail.com>
On Fri, Apr 24, 2009 at 11:46, Boris Zbarsky <bzbarsky at mit.edu> wrote:
> It's not really clear to me what the benefits of using the (rather
> suboptimal, from the JS point of view) DOM EventTarget API for generic JS
> callback dispatch are.

One of the benefits is a consistent API.

I do agree that the EventTarget API is suboptimal and so are most of
the DOM APIs but it is what we got and we need tie the lose ends and
make ends meet.

-- 
erik
Received on Friday, 24 April 2009 12:47:40 UTC

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