copy

creates a deep copy of provided object

object copy(object task);

Parameters

taskobjectthe object that needs to be copied

Returns

objecta deep copy of provided object

Example

var backupTask = gantt.copy(gantt.getTask(id));

Change log

added in version 4.0

Back to top