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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.