Simple node list implementation with underlying array and map implements goog.ds.DataNodeList. Names that are reserved for system use and shouldn't be used for data node names: eval, toSource, toString, unwatch, valueOf, watch. Behavior is undefined if these names are used.
extends goog.ds.DataNodeList| Instance Method Summary | |
add(?goog.ds.DataNode node)Add a node to the node list. If the node has a dataName, uses this for the key in the map. TODO(user) Remove function as well | |
get(string key) ⇒ ?goog.ds.DataNodeGet a node by string key. Returns null if node doesn't exist. | |
getByIndex(number index) ⇒ ?goog.ds.DataNodeGet a node by index Returns null if the index is out of range | |
getCount() ⇒ numberGets the size of the node list | |
indexOf(string name) ⇒ (number|undefined)Get the index of a named node | |
removeNode(string name) ⇒ booleanRemoves a node in the list of a given name | |
setNode(string name, ?goog.ds.DataNode node)Sets a node in the list of a given name | |