Created
October 25, 2011 09:32
-
-
Save roundcorners/1312032 to your computer and use it in GitHub Desktop.
Updated iterator object
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
length = data.length ? data.length : count(data); | |
next: function() { | |
if (!this.hasNext()) { | |
return null; | |
} | |
index = index + 1; | |
if (data[index] !== undefined) { | |
return data[index]; | |
} | |
return getItem(data, index); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment