checks whether an event has some handler(s) specified
name | SchedulerEventName | the event's name |
boolean | returns true, if some handler is specified for the event |
scheduler.attachEvent("onEventSave",function(id,data){
if (data.text.length<20) {
alert("Text too small");
return false;
}
return true;
})
...
scheduler.checkEvent("onEventSave"); //returns 'true'