This documentation refers to an UNRELEASED version of Infusion.
View this page in the latest stable release documentation, or visit the latest release documentation home.
If you're looking for Fluid Project coordination, design, communication, etc, try the Fluid Project Wiki.

Skip to end of metadata
Go to start of metadata


Performs a deep copy (clone) of the object passed in the argument.

File name: Fluid.js



(Object) The object to be copied

Return Value


The copied object

See Also


This function recursively copies the contents of tocopy into a new object of the same type.


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.

  • No labels