> > Nice point, I didn't know that. Could you provide an alternate version > of the "class" using that approach? And do you know if that would work > on IE6?
I just tried it out in Chrome, and no luck, so fairly certain that Gary is correct an it is FF only. As I look around the web, Iterators became available starting with Firefox2, and I'm seeing a number of references to it in ES4. Was it part of ES4 (which was thrown out) and never added back into ES5, which explains it not being widely adopted? That implementation in Firefox seemed a little goofy anyways. On Mon, Dec 13, 2010 at 11:25 AM, Gary Katsevman <[email protected]>wrote: > > Instead you can do this.array[((this.position-- + this.array.length) + > > this.array.length)]. > > Should be: > this.array[ (this.position-- + this.array.length) % this.array.length ]; > ------------------------ > Gary Katsevman > Computer Science Undergraduate > Northeastern University > gkatsev.com > > -- > You received this message because you are subscribed to the Google Groups > "The JSMentors JavaScript Discussion Group" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<jsmentors%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/jsmentors?hl=en. > > -- To view archived discussions from the original JSMentors Mailman list: http://www.mail-archive.com/[email protected]/ To search via a non-Google archive, visit here: http://www.mail-archive.com/[email protected]/ To unsubscribe from this group, send email to [email protected]
