detachEvent

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

void detachEvent(string id);
idstringthe event's id

Example

var myEvent = scheduler.attachEvent("onClick", function (id){
    ...//event handler code
});
...
scheduler.detachEvent(myEvent);

Details

All event listeners attached using event will be detached automatically when the destructor is called.

See also
Back to top