Methods
-
abort() → {Iroha.Iterator}
-
abort automatic iterating
Returns:
this instance- Type
- Iroha.Iterator
-
hasNext() → {boolean}
-
does the iterator has next element?
Returns:
true if the iterator has next element.- Type
- boolean
-
init(targets, mode) → {Iroha.Iterator}
-
initialize
Parameters:
Name Type Argument Default Description targetsObject iterated elements; an associative array, an array, or an object like those. modeObject <optional>
"value" element getting mode; 'key', 'value', or 'both' Returns:
this instance- Type
- Iroha.Iterator
-
iterate(func, ms, aThisObject, _dfd) → {jQuery.Deferred.Promise}
-
start automatic iterating.
Parameters:
Name Type Argument Default Description funcFunction callback function msnumber <optional>
0 milliseconds to interval aThisObjectObject <optional>
the object that will be a global object ('this') in the func _dfdDeferred <optional>
(internal use) 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"
Returns:
next element in the iteration- Type
- Object