- Patch #800968 by JacobSingh, ksenzee: tabledrag.js should not use for...in to iterate over an array.

merge-requests/26/head
Dries Buytaert 2010-05-18 06:46:45 +00:00
parent f8fa114a8e
commit f8c58bf23d
1 changed files with 1 additions and 1 deletions

View File

@ -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.