[Greasemonkey] User input
Johan Sundström
oyasumi at gmail.com
Wed Mar 29 22:15:05 EST 2006
> That's from the initialize function. But if I read the code correctly
> then _unload is replaced with unload both when the event listener is
> created and when the reference to it is stored in _registry. So why
> does it need to be defined as _unload instead of simply unload?
IIRC, it's to be able to use the class to register proper unload
events of your own too.
(I didn't write the code; I have just read through it for a sanity
check prior to using it myself, so I don't remember much of the
details.)
--
/ Johan Sundström, http://ecmanaut.blogspot.com/
More information about the Greasemonkey
mailing list