dom.iter.ChildIterator Extends goog.dom.iter.SiblingIterator
Iterator over an Element's children.

Inheritance

Constructor

goog.dom.iter.ChildIterator(elementopt_reverseopt_startIndex)

Parameters

element : Element
The element to iterate over.
opt_reverse : boolean=
Optionally traverse children from last to first.
opt_startIndex : number=
Optional starting index.

Instance Methods

Public Protected Private
next()
No description.
code »
__iterator__(opt_keys) !goog.iter.Iterator.<VALUE>
Returns the Iterator object itself. This is used to implement the iterator protocol in JavaScript 1.7
Arguments:
opt_keys : boolean=
Whether to return the keys or values. Default is to only return the values. This is being used by the for-in loop (true) and the for-each-in loop (false). Even though the param gives a hint about what the iterator will return there is no guarantee that it will return the keys when true is passed.
Returns: !goog.iter.Iterator.<VALUE>  The object itself.
code »
next() VALUE
Returns the next value of the iteration. This will throw the object when the iteration passes the end.
Returns: VALUE  Any object or value.
code »

Instance Properties

constructor :
No description.
Code »
constructor :
No description.
Code »
node_ :
The current node, or null if iteration is finished.
Code »
reverse_ :
Whether to iterate in reverse.
Code »

Static Properties

goog.dom.iter.ChildIterator.superClass_ :
No description.
Code »

Package dom.iter

Package Reference