Skip to content

Replaces use of jQuery object as container with native Array - #5

Open
anddoutoi wants to merge 1 commit into
cowboy:masterfrom
anddoutoi:master
Open

Replaces use of jQuery object as container with native Array#5
anddoutoi wants to merge 1 commit into
cowboy:masterfrom
anddoutoi:master

Conversation

@anddoutoi

Copy link
Copy Markdown

A jQuery object keeps a reference to the "replaced" jQuery object in .prevObject when using .add() and .not(). This could result in a leek of memory cause detached and removed DOM elements will still be referenced.

…ative Array. The methods .add() and .not() creates a new jQuery object that keeps a reference to the old jQuery object in its property .prevObject.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant