An "Array" object is treated more like an object than an array in Chrome, so if you do for(i in new Array(1,2)), you are going to iterate not only over the 0,1, but also "indexOf" and other methods/properties.
=== modified file 'drupal/misc/tabledrag.js'
--- drupal/misc/tabledrag.js 2009-07-01 22:33:52 +0000
+++ drupal/misc/tabledrag.js 2011-05-19 15:32:31 +0000
@@ -1015,7 +1015,7 @@
var siblings = new Array();
var directions = new Array('prev', 'next');
var rowIndentation = this.indents;
- for (var d in directions) {
+ for (var d=0; d
var checkRow = $(this.element)[directions[d]]();
while (checkRow.length) {
// Check that the sibling contains a similar target field.
=== modified file 'drupal/sites/all/modules/jquery_update/replace/tabledrag.js'
--- drupal/sites/all/modules/jquery_update/replace/tabledrag.js 2010-07-13 18:24:43 +0000
+++ drupal/sites/all/modules/jquery_update/replace/tabledrag.js 2011-05-19 15:33:15 +0000
@@ -994,7 +994,7 @@
var siblings = new Array();
var directions = new Array('prev', 'next');
var rowIndentation = this.indents;
- for (var d in directions) {
+ for (var d=0; d
var checkRow = $(this.element)[directions[d]]();
while (checkRow.length) {
// Check that the sibling contains a similar target field.
Comments