This documentation is currently being moved to our new documentation site.

Please view or edit the documentation there, instead.

If you're looking for Fluid Project coordination, design, communication, etc, try the Fluid Project Wiki.

fluid.freshContainer

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.