[whatwg] Exposing EventTarget to JavaScript

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.
w> 
> 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