Don't use for (i in array) in JavaScript
authorAryeh Gregor <simetrical@users.mediawiki.org>
Fri, 2 Jan 2009 00:11:48 +0000 (00:11 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Fri, 2 Jan 2009 00:11:48 +0000 (00:11 +0000)
commitea46f4288682b895c48bc37b9c81c588c7b94cc8
tree198809cfb8ef21f14bfc1a587dc051078db03da1
parent0100bec65877b1361b75c0fb8638e0dd1bb08d0f
Don't use for (i in array) in JavaScript

This reportedly can cause errors, because it will return all object
attributes, not just array elements.  Use a C-style for here instead.
This could be done in other places too -- the immediate motive here is
that this might be related:

http://en.wikipedia.org/wiki/Wikipedia:Village_pump_(technical)#Sortable_tables_.26_Firefox_3.0.5

The functionality seems to still work.
skins/common/wikibits.js