>Message: 1
>Date: 6 Oct 2006 18:29:21 -0700
>From: "r0wb0t" <
rna...@gmail.com>
>Subject: Adding event listeners after toolbar is customized
>To:
dev-te...@lists.mozilla.org>Message-ID: <
1160184561.7...@b28g2000cwb.googlegroups.com>
>Content-Type: text/plain; charset="iso-8859-1"
>
>Hi,
>
>I have an extension which modifies the behavior of the search bar in
>Firefox. I attach focus and blur listeners to the searchbar textbox on
>load. But... if the user customizes the toolbar and drags the
>searchbar around the listeners are lost. Are all listeners removed
>when the element is no longer in the DOM? How can I know when it gets
>put back in the DOM in a different place so that I can reattach them?
>
>Thanks for listening,
>Rowan
>
i met the same case with you. When a element removed, it's all event
listeners removed at the same time. i have to added event listener again
if needed.
_________________________________________________________________
享用世界上最大的电子邮件系统— MSN Hotmail。 http://www.hotmail.com