-
Notifications
You must be signed in to change notification settings - Fork 250
Closed
Description
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.
Metadata
Metadata
Assignees
Labels
No labels