Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
jQuery.data (jQuery 1.x) prevents leaks *only* when also using jQuery's own remove(), html(), etc. functions. jQuery.data (jQuery 1.x) actually *causes* leaks on modern browsers, when jQuery's methods are not used, like when calling Node.removeChild() directly. Circular references between DOM elements and JS objects are not an issue with more recent browsers. (Alternative could be to use ECMAScript 6 WeakMap, which is not supported by IE)
- Loading branch information
1 parent
919b736
commit 3b7a736
Showing
4 changed files
with
22 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.