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

[whatwg] Exposing EventTarget to JavaScript

From: Stewart Brodie <stewart.brodie@antplc.com>
Date: Thu, 30 Apr 2009 10:33:32 +0100
Message-ID: <c3ad669b0d5a098dda3d9ec2eef6d71ab9240110@localhost>
Alex Russell <slightlyoff at google.com> wrote:

> > But if you addEventListener, you can have multiple listeners for a given
> > event.  The only caveat is that dispatch order is undefined.
> Also a bug. It's not *actually* undefined, it's triangulated by
> libraries.

Actually, it is defined.  They are called in registration order, from oldest
to newest.  This is stated in both the latest D3E working draft, and the
older versions dating back to 2003 (at least - I didn't go back any further)

Stewart Brodie
Software Engineer
ANT Software Limited
Received on Thursday, 30 April 2009 02:33:32 UTC

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