An additional question I have for sake of completeness

Will empty(), remove() unbind just child element events (1 level down)
or events for ALL descendants?

Thanks,
J


On Sep 1, 8:50 pm, mkmanning <michaell...@gmail.com> wrote:
> .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 tounbindevents 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