My code:
<input type="text" v-on:keydown="handler">
How can I manually destroy this listener ? I can do this:
handler: function(){
return;
}
But I want to completely remove listener itself. Thanks
Is $off()
what you are looking for?
Remove event listener(s).
If no arguments are provided, remove all event listeners;
If only the event is provided, remove all listeners for that event;
http://vuejs.org/api/#vm-off
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With