[Greasemonkey] Re: Memory Leaks
Andre
gm at andrecgn.de
Wed Nov 9 18:26:16 EST 2005
Once I hooked it into window instead of document.body, all works well
and "unhook" gets called.
Andre
----- Original Message -----
From: Jeremy Dunck <jdunck at gmail.com>
Sent: Mittwoch, 9. November 2005 17:06:29
Subject: Memory Leaks
> On 11/9/05, Andre <gm at andrecgn.de> wrote:
>
>>Jeremy,
>>
>>is 'unload' an event in FF 1.5? I am still on 1.0.7. *blush* I can hook
>>the event, but it never fires ...
>
>
> Hmm.
>
> The attached unload1.html works, while unload2.html doesn't work. 1
> defines two functions and then uses inlined attribute hooks
> "onload/onunload" to call them. 2 defines onload and then hooks
> unload dynamically using an anonymous func. Should work, but doesn't.
>
> I'm sure I'm doing something stupid. Perhaps Lenny will point it out. ;-)
>
> unload3.html works by hooking unload on window, not body. Spec seems
> to say body is the correct thing, but what do I know.
> http://www.w3.org/TR/2000/REC-DOM-Level-2-Events-20001113/events.html#Events-eventgroupings-htmlevents
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Greasemonkey mailing list
> Greasemonkey at mozdev.org
> http://mozdev.org/mailman/listinfo/greasemonkey
More information about the Greasemonkey
mailing list