DHTMLX Docs & Samples Explorer

detachEvent(evId)

Removes an event handler attached through attachEvent() method.

Parameters:

  • id - the event id.

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

See also: