- From: Olli Pettay <Olli.Pettay@helsinki.fi>
- Date: Tue, 19 May 2009 10:37:20 +0300
- To: "Emanuele D'Arrigo" <manu3d@gmail.com>
- CC: "www-dom@w3.org" <www-dom@w3.org>
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