new AtomEnumerator (array)

We wanted to follow simple enumeration pattern without overriding "this" as other frameworks do it. Purpose of this is to create good compatibility with people coming from different platforms.

Methods

next: boolean

Returns true, if there is an item to consume in the given list. Just like Java, C#, you have to call next method in a while loop to check availability of next item in enumeration.

current: *

Returns current item.

currentIndex: int

Returns current index in enumeration.

ChildEnumerator

We have created DOM Child enumerator, which allows you to enumerate child of dom element in fastest way. This method does not create any array, instead it simply uses nextSibling to nagivate, which is pretty fast. ChildEnumerator class expects parent element as an argument to constructor.

Example