Documentation

detachEvent

detaches a handler from an event (which was attached before by the attachEvent method)

void detachEvent(id id);

Parameters

ididthe event id (the result of the attachEvent operation)

See also

Example

var myEvent = $$("mylist").attachEvent("onItemClick", function (){
    ...//event handler code
});
...
$$("mylist").detachEvent(myEvent);

Back to top