Creates a copy of the collection.
Namespace: MindFusion.Common.Collections
File: IEnumerable.js
The following code copies the collection of items of a TreeNode, which is of type IEnumerable:
JavaScript Copy Code |
---|
var treeView = new ui.TreeView(document.getElementById("treeView")); // create a tree node that will be a root in our hierarchy var span = new ui.TreeNode("span"); var elements = [span, div, p]; var copyCollection = root.items.clone(); |