Skip to content

It should be explained whether or not .html() unbinds elements  #69

Closed
@lahabana

Description

@lahabana

There's nothing said about that in the doc.
That matter is documented for both .remove():

In addition to the elements themselves, all bound events and jQuery data associated with the elements are removed. To remove the elements without removing data and events, use .detach() instead.

and .empty():

To avoid memory leaks, jQuery removes other constructs such as data and event handlers from the child elements before removing the elements themselves.

It seems to do unbind but I'm not actually sure...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions