Sorry, I can't verify your claim. But, you know for sure that ie6
leaks, then it's important that I unbind them. Thanks, James.

On Sep 1, 8:20 pm, James <james.gp....@gmail.com> wrote:
> Correct me if I'm wrong, but I think Firefox does cleanup those
> events, but IE (v6 at least, I know) doesn't, so it creates memory
> leaks. It's probably good practice to unbind them.
>
> On Sep 1, 1:18 pm, roydukkey <royduk...@gmail.com> wrote:
>
> > Is it necessary to unbind events from elements before removing them.
> > As like the following:
>
> > $("#list").find("li").unbind("hover").remove();
> > $("#list").html(<<List of New LI's>>);
>
> > I'm building a plugin, and I want to know if the events listners will
> > remain in memory, as code similar to the above will run every 5
> > seconds or so.

Reply via email to