fluid.copy(tocopy)
|
Performs a deep copy (clone) of the object passed in the argument. File name: Fluid.js Parameters
Return Value
|
See Also |
Notes
This function recursively copies the contents of tocopy into a new object of the same type.
Example
In this example, fluid.copy() is being used to preserve a copy of a model. This can be useful for scenarios where some kind of 'revert' or 'undo' might be desirable.
Labels:
None