detaches a handler from an event (which was attached before by the attachEvent method)
id | string | the event's id |
var myEvent = scheduler.attachEvent("onClick", function (id){
...//event handler code
});
...
scheduler.detachEvent(myEvent);
All event listeners attached using event will be detached automatically when the destructor is called.