this is not a bug. javascript arrays start from zero , not one. example, foo = [] foo[100] = "foo" this array now has 100 items in it, and items 0 to 98 are null or undefined. IE craps out with this, firefox tends to be a little more graceful and tell you its "undefined" As you can see in your example, the array has 5 items in it. Just because you start from one doesnt mean the "each" will start from one.
_____ From: Roman Land [mailto:[email protected]] Sent: Monday, 14 December 2009 11:14 PM To: [email protected] Subject: [Moo] Found a very annoying bug.. Hi, It seems that if an array does not have an element in position 0, $each in IE will still try to iterate over it, simple demonstration: http://mooshell.net/ehTsR/ When trying to access the item itself, IE will error out and stop.. A bug? Thanks! -- Roman -- --- "Make everything as simple as possible, but not simpler." - Albert Einstein
