You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
...if using jQuery instead of jqLite because the jQuery $element still references the replaced DOM element as the context. This only occurs if the element is replaced and not cloned since cloning creates a new jQuery object instead of just modifying the compiled $element. (http://plnkr.co/edit/vGwzc1FGt127pQ1wbKNT?p=preview)
This isn't huge, and isn't really a memory leak because it will get destroyed along with the $element, but it would be nice if the replaced DOM was cleaned up. I think this can be fixed in the $compile replaceWith helper by properly clearing the jQuery context...
edit: I originally had something about replace & -start/end in here too but that seems unrelated.
The text was updated successfully, but these errors were encountered:
The next Angular 1.3.0 beta will support jQuery 2.1 (and will not officially support older versions though they should work). The relevant commit: 9e7cb3c
The beta should be released in about a week. Before that happens, you can check if the issue still exists by trying the snapshot Angular version: https://code.angularjs.org/snapshot/angular.js
Don't use it in production, though, wait for a proper release.
...if using jQuery instead of jqLite because the jQuery $element still references the replaced DOM element as the context. This only occurs if the element is replaced and not cloned since cloning creates a new jQuery object instead of just modifying the compiled $element. (http://plnkr.co/edit/vGwzc1FGt127pQ1wbKNT?p=preview)
This isn't huge, and isn't really a memory leak because it will get destroyed along with the $element, but it would be nice if the replaced DOM was cleaned up. I think this can be fixed in the $compile
replaceWith
helper by properly clearing the jQuery context...edit: I originally had something about replace & -start/end in here too but that seems unrelated.
The text was updated successfully, but these errors were encountered: