Nikhil Kadu wrote:
Using addEventListener ( DOMString type , nsIDOMEventListener listener ,
PRBool useCapture ), I am installing a listener in same window twice
but with different parameters.
win.addEventListener ("load", xyz, true);
win.addEventListener ("load", xyz, false);
In one case the useCapture parameter is true and in other it is false.
When I receive the notification in xyz.handleEvent(nsIDOMEvent evt)
callback function, I am not able to figure out whether the notification
is for useCapture = true or useCapture = false.
The event object passed to your listener should tell you:
<http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-Event>
It has a property named eventPhase which is a number giving the current
phase the event is in, e.g. 1 for CAPTURING_PHASE, 3 for BUBBLING_PHASE.
--
Martin Honnen
http://JavaScript.FAQTs.com/
_______________________________________________
Mozilla-xpcom mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-xpcom