Skip to content

perf: Collection repeat memory leak #3999

Closed
@85lele

Description

@85lele

Type: perf

Platform: all

In the destroy function of collection-repeat directive, computedStyleNode never has a parent.

Moreover using removeChild just detach the node, but it doesn't remove events attached on it (or on childs) by other directives (like ng-click).
This causes the detached DOM of the scroll view to be kept in memory.

If I replace it with angular.element(computedStyleNode).remove(); all works fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions