Class: Iterator

Iroha. Iterator

new Iterator()

Source:

Methods

abort() → {Iroha.Iterator}

abort automatic iterating
Source:
Returns:
this instance
Type
Iroha.Iterator

hasNext() → {boolean}

does the iterator has next element?
Source:
Returns:
true if the iterator has next element.
Type
boolean

init(targets, mode) → {Iroha.Iterator}

initialize
Parameters:
Name Type Argument Default Description
targets Object iterated elements; an associative array, an array, or an object like those.
mode Object <optional>
"value" element getting mode; 'key', 'value', or 'both'
Source:
Returns:
this instance
Type
Iroha.Iterator

iterate(func, ms, aThisObject, _dfd) → {jQuery.Deferred.Promise}

start automatic iterating.
Parameters:
Name Type Argument Default Description
func Function callback function
ms number <optional>
0 milliseconds to interval
aThisObject Object <optional>
the object that will be a global object ('this') in the func
_dfd Deferred <optional>
(internal use)
Source:
Returns:
jQuery.Deferred.Promise
Type
jQuery.Deferred.Promise

next() → {Object}

get next element in the iteration; the form of an acquired element depends on "element getting mode"
Source:
Returns:
next element in the iteration
Type
Object