summaryrefslogtreecommitdiff
path: root/misc/tabledrag.js
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-05-18 06:46:45 +0000
committerDries Buytaert <dries@buytaert.net>2010-05-18 06:46:45 +0000
commitf8c58bf23d9c97182cfb7262ec0ab7ec66507cb8 (patch)
treeff653d38f4c496a43a9c4cc7d634322dae2eb757 /misc/tabledrag.js
parentf8fa114a8e4acb886a24573dd08240f65a9e5fd4 (diff)
downloadbrdo-f8c58bf23d9c97182cfb7262ec0ab7ec66507cb8.tar.gz
brdo-f8c58bf23d9c97182cfb7262ec0ab7ec66507cb8.tar.bz2
- Patch #800968 by JacobSingh, ksenzee: tabledrag.js should not use for...in to iterate over an array.
Diffstat (limited to 'misc/tabledrag.js')
-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.