eventRemove

removes an event handler from an HTML element

void eventRemove(HTMLElement|string node,string event,function handler, [boolean|object options] );

Parameters

nodeHTMLElement|stringthe HTML node or its id
eventstringthe name of an HTML event (without the 'on' prefix)
handlerfunctionthe event handler
optionsboolean|objectoptional, the value of either the useCapture or options parameter. Read details

Example

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

See also
Change log

added in version 4.0

Back to top