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