checkEvent

checks whether an event has some handler(s) specified

boolean checkEvent(SchedulerEventName name);
nameSchedulerEventNamethe event's name
booleanreturns true, if some handler is specified for the event

Example

scheduler.attachEvent("onEventSave",function(id,data){
    if (data.text.length<20) {
        alert("Text too small");
        return false;
    }
    return true;
})
...        
scheduler.checkEvent("onEventSave"); //returns 'true'

See also
Back to top