Do not use "for..in" to iterate over js Arrays in Sunstone
|Assignee:||Hector Sanjuan||% Done:|
|Target version:||Release 3.0|
for...in sentence is meant to list the properties of an object, not to iterate over array elements. If functions are added to the Array prototype, then they are treated as elements of the array, which is a wrong behaviour. Instead, classical for (var x; x < y; x++) loops should be used.
Bug #645: Iterate on arrays with vanilla loops.
For...in loops on Arrays were changed in to for(i = 0, i<length, ++i) style loops. There where the former form caused problems or problems had been workaround-ed small improvements have been made.