destructor

destroys a scheduler instance

void destructor();

Example

var myScheduler = Scheduler.getSchedulerInstance();
 
//destroying a scheduler instance
myScheduler.destructor();

Details

The method destroys a scheduler instance and calls the onDestroy event.

Calling the destructor will:

  • clear the data loaded into a scheduler instance
  • destroy the DataProcessor (if it is attached to the scheduler)
  • detach the scheduler from DOM
  • detach all DOM events attached via the event method

If you use a package that does not allow creating multiple instances of a scheduler (GPL or Individual editions), calling the scheduler destructor will make scheduler inaccessible until a page is reloaded.

See also
Change log

added in version 6.0

Back to top