.remove() "will also remove all event handlers and internally cached
data"
http://docs.jquery.com/Manipulation/remove#expr

On Sep 1, 4: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