Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3
Div
classapi-page

fluid.freshContainer(tocopy)

Section
Column
width70%

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

Code Block
javascript
javascript
bgColorwhite
borderStylenonejavascript
fluid.freshContainer(tocopy);

File name: Fluid.js

Parameters

Span
classborderless-table

tocopy

(Array|Object) The container to copy

Return Value

Span
classborderless-table

Object

A new object that is the same type as tocopy.

Column
width5%

Column

See Also


Example

Code Block
javascript
javascript
var target = fluid.freshContainer(source);

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