Closed matthewp closed 6 years ago
setData set up a mutation listener to delete internal state when the DOM node is removed.
https://github.com/canjs/can-dom-data-state/blob/4000533acdd5919745526a62734d61657e3ae58f/can-dom-data-state.js#L44
However the function it calls expects a DOM node as the this object (see here) so the state is never removed.
this
setData set up a mutation listener to delete internal state when the DOM node is removed.
https://github.com/canjs/can-dom-data-state/blob/4000533acdd5919745526a62734d61657e3ae58f/can-dom-data-state.js#L44
However the function it calls expects a DOM node as the
this
object (see here) so the state is never removed.