Answers for "javascript remove event listener not working"

0

javascript remove event listener not working

var someEventHander=function(){
	console.log("do something");
}
var handlerCopy=someEventHandler.bind(var1,var2)
//add listener
document.getElementById("someid").addEventListener('click',handlerCopy,true);
//remove listener 
document.getElementById("someid").removeEventListener('click',handlerCopy,true);
Posted by: Guest on June-21-2019

Code answers related to "javascript remove event listener not working"

Code answers related to "Javascript"

Browse Popular Code Answers by Language