Hi, > > Yes, it's an extremely common misconception. > > What, that for..in iterates over an object's properties?
No, that it loops over array indexes. -- T.J. On Aug 2, 3:49 pm, RobG <[email protected]> wrote: > On Aug 2, 3:43 pm, "T.J. Crowder" <[email protected]> wrote: > > > Hi, > > > > I found that array looping method online, I guess I will remove that > > > page from my bookmarks. > > > Yes, it's an extremely common misconception. > > What, that for..in iterates over an object's properties? It's per > ECMA-262. There are strategies for dealing with properties on an > array's internal prototype chain so that for..in works just fine, even > when it's built-in prototype has been modified. > > -- > Rob -- You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
