Re: addEventListener on my own extension?
Neil Deakin <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.dom |
|---|---|
| Message-ID | <[email protected]> |
Simon wrote: > On Nov 14, 4:01 pm, Boris Zbarsky <[email protected]> wrote: >> Boris Zbarsky wrote: >> Implements it correctly, that is: saves the list of listeners, notifies >> them as needed, etc. > > Thanks a lot! For me is also interesting to know about "helping"- > classes. I found an nsEventDispatcher, nsEventListenerManager, but can > I use it or is it useless for me? (or is it a good style to use the > classes?) Those are internal classes that you shouldn't be using. In your case, obj just needs to implement the event target interface, which is documented in the dom spec: http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-EventTarget