copy

creates a deep copy of the provided object

object copy(object event);
eventobjectthe object that needs to be copied
objecta deep copy of the provided object

Example

var backupEvent = scheduler.copy(scheduler.getEvent(id));

Change log

added in version 6.0

Back to top