This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
ngAnimate: memory leak in disabledElementsLookup Map #16637
Closed
Description
All begins with this line of the code:
angular.js/src/ngAnimate/animateQueue.js
Line 306 in 494277e
Reproducable: always
Browsers: Any
Operating system: Any
Versions: All that use the hash map
Steps to reproduce:
Available in codepen: https://codepen.io/anon/pen/yqVwwE
click on "leaker" n times to get n detached nodes as seen in the screenshot
Solution: listen for element scope destroy event, or element.on('remove')
and delete the node from disabledElementsLookup
Map ?
Note: If this is "working as intended" at least provide public api to disabledElementsLookup
so we can cleanup after directive exits