Skip to content

DOMRenderer listener leaks #378

Description

@jd-carroll

Currently there is no facility which removes listeners from the actual DOM element. When we subscribe to a DOM event, the DOMRenderer will add a listener by:

        // FIXME Add to content DIV if available
        var target = eventMap[type][1] ? this._root : this._target;
        target.listeners[type] = this._boundTriggerEvent;
        target.element.addEventListener(type, this._boundTriggerEvent);

If the associated node is removed/dismounted and the underlying DOM element is freed, we will never stop listening to the subscribed events on that element.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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