Open MaybeRex opened 8 years ago
For example, when binding this to a click event listener, the listener will continue to live on after removed
this
attachedCallback(){ this.addEventListener( 'click', this.clicked.bind(this) ); }
this will not be unbound later
dettachedCallback(){ this.removeEventListener( 'click', this.clicked.bind(this) ); }
For example, when binding
this
to a click event listener, the listener will continue to live on after removedthis will not be unbound later