Re: addEventListener on my own extension?
Simon <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.dom |
|---|---|
| Organization | http://groups.google.com |
| Message-ID | <422c6c8c-89eb-4e2d-b2fc-a122db417db0@d36g2000prf.googlegroups.com> |
On 17 Nov., 15:34, Boris Zbarsky <[email protected]> wrote: > > Only the code in createEvent itself needs to know about nsDOMTextEvent. > You get back an nsIDOMEvent. ok, that works, but... I need the TextEvent to attache some string on the event. I would add the DOMString with the TextEvent - init- function (http://www.w3.org/TR/DOM-Level-3-Events/events.html#Events- TextEvent). If I get a nsIDOMEvent it isn't possible to use this initTextEvent(...) function. (error: ‘class nsDerivedSafe<nsIDOMEvent>’ has no member named ‘InitTextEvent’) So it's useless for me. How can i call the initTextEvent method when i don't get a nsIDOMTextEvent? -simon