jquery remove on code example
Example 1: jquery clear click event
$( "#foo" ).unbind("click");
Example 2: remove a function added to eventhandler
element.removeEventListener(type, handler);
$( "#foo" ).unbind("click");
element.removeEventListener(type, handler);