summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGábor Hojtsy2012-04-16 13:18:29 (GMT)
committer Gábor Hojtsy2012-04-16 13:18:29 (GMT)
commit6ea173ecc67b506d0acaabeda59fe09d467eb852 (patch)
treea9edd64fc1c0efc07569e27265c334a528342fea
parent744575c8cb5c2ecb33b8dab9239396b6fcde0d2b (diff)
Issue #800968 by JacobSingh, ksenzee, Big Z: Tabledrag.js should not use for...in to iterate over an array.
-rw-r--r--misc/tabledrag.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/tabledrag.js b/misc/tabledrag.js
index 9916821..4ac3714 100644
--- a/misc/tabledrag.js
+++ b/misc/tabledrag.js
@@ -1014,7 +1014,7 @@ Drupal.tableDrag.prototype.row.prototype.findSiblings = function(rowSettings) {
var siblings = new Array();
var directions = new Array('prev', 'next');
var rowIndentation = this.indents;
- for (var d in directions) {
+ for (var d = 0; d < directions.length; d++) {
var checkRow = $(this.element)[directions[d]]();
while (checkRow.length) {
// Check that the sibling contains a similar target field.