Documentation for a historical release of Infusion: 1.4
Please view the Infusion Documentation site for the latest documentation, or the Infusion 1.3. Documentation for the previous release.
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

fluid.freshContainer(tocopy)

Return an empty container as the same type as the argument (either an array or hash).

fluid.freshContainer(tocopy);

File name: Fluid.js

Parameters

tocopy (Array|Object) The container to copy

Return Value

Object A new object that is the same type as tocopy.

See Also


Example

var target = fluid.freshContainer(source);

This example creates an object that is the same type as source but is empty.

  • No labels