Re: Fwd: DOM Level 3 Events

On 5/19/09 1:27 AM, Emanuele D'Arrigo wrote:
> It's just that it's not clear which object is
> intended to be driving the event dispatch.
Well, that is an implementation detail. You can implement
event dispatch in different ways.

In Gecko 1.9.x there is an Event Dispatcher which creates
Event Target Chain and then iterates through the items
of that chain and calls their event listeners.
This way for example the event handling of XMLHttpRequest works
exactly the same way as event handling of a DOM Node -
Event Dispatcher doesn't know anything about DOM Nodes, it knows
only about Event Targets.

In the old days (Gecko 1.8.x and earlier) recursion was used to dispatch 
events.

-Olli

Received on Tuesday, 19 May 2009 07:37:58 UTC