Re: DOMContentLoaded event from C++
Neil <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.xpfe |
|---|---|
| Message-ID | <[email protected]> |
YuLo wrote: >A question for nubie. What function will be fired on event. The second parameter for "AddEventListener" is "this". It is the pointer to class, not function. > > The second parameter is an nsIDOMEventListener type. This has a method called handleEvent (or HandleEvent in C++). XPConnect magic allows script to pass a function instead of a class. -- Warning: May contain traces of nuts.