You are here

copy

copy() these methods copy the current node to a new destination.

copy

copy(destination) copies the current node to a new destination.

Parameters

destination
A ScriptNode object that represents the new destination.

Returns

A ScriptNode object that represents the copied node.

copy

copy(destination) copies the current node to a new destination.

Parameters

destination
A string that represents the path for the copy.

Returns

A ScriptNode object that represents the copied node.