how to remove the event listener in javascript if I don't have reference to the function code example
Example: javascript remove event listener
var someEventHander=function(event){
console.log("do something");
}
//add listener
document.getElementById("someid").addEventListener('click',someEventHander);
//remove listener
document.getElementById("someid").removeEventListener('click',someEventHander);