[jQuery] bad iterator in interface's sortables
The iterator being used is a for-in but the object is an Array, so it's sometimes breaking and sometimes doing insane things due to my additions to Array.prototype.
Sortables:92
for(i in jQuery.iSort.changed){
I suggest changing it to a vanilla for loop:
for(var i = 0; i < jQuery.iSort.changed.length; i++){
Optimization and actually seeing if it works is an exercise to the reader ;)
IMHO I don't think iterating with a for-in is a good idea if the object is an array.
Cheers,
Brito
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/