eventRemove

removes an event handler from an HTML element

void eventRemove(string id);
idstringthe id of an event handler

Example

var eventId = scheduler.event("divId", "click", function(e){
    do_something();
});
 
scheduler.eventRemove(eventId);

Details

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

See also
Change log

added in version 4.4

Back to top