JavaScript menghapus pendengar acara
var someEventHander=function(event){
console.log("do something");
}
//add listener
document.getElementById("someid").addEventListener('click',someEventHander);
//remove listener
document.getElementById("someid").removeEventListener('click',someEventHander);
Grepper