Skip to content
Snippets Groups Projects
Commit 6ea173ec authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

Issue #800968 by JacobSingh, ksenzee, Big Z: Tabledrag.js should not use...

Issue #800968 by JacobSingh, ksenzee, Big Z: Tabledrag.js should not use for...in to iterate over an array.
parent 744575c8
No related branches found
No related tags found
No related merge requests found
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment