summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--misc/tabledrag.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/tabledrag.js b/misc/tabledrag.js
index 6dcc28092..5ee580ca0 100644
--- a/misc/tabledrag.js
+++ b/misc/tabledrag.js
@@ -998,7 +998,7 @@ Drupal.tableDrag.prototype.row.prototype.findSiblings = function (rowSettings) {
var siblings = [];
var directions = ['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.