[whatwg] Exposing EventTarget to JavaScript

Stewart Brodie stewart.brodie at antplc.com
Thu Apr 30 02:33:32 PDT 2009

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

More information about the whatwg mailing list