Skip to content
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
@vertazzar

Description

@vertazzar

All begins with this line of the code:

disabledElementsLookup.set(node, !bool);

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

screen shot 2018-07-20 at 12 37 41

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions