Re: addEventListener on my own extension?
Simon <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.dom |
|---|---|
| Organization | http://groups.google.com |
| Message-ID | <[email protected]> |
On Nov 15, 5:29 pm, Neil Deakin <[email protected]> wrote: > 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 thanks a lot! So I did it, but now i have a new problem. I want use the nsEventDispatcher::CreateEvent(nsnull, nsnull, NS_LITERAL_STRING ("datacontainerevent"), dataEvent); function to get an event-instance. I have already included the nsEventDispatcher.h but the compiler prints following error-messages: -- error: ‘nsEventDispatcher’ has not been declared error: ‘CreateEvent’ was not declared in this scope -- What can I do to use this static function? -Simon