Skip to content
Snippets Groups Projects
Commit f8c58bf2 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #800968 by JacobSingh, ksenzee: tabledrag.js should not use for...in...

- Patch #800968 by JacobSingh, ksenzee: tabledrag.js should not use for...in to iterate over an array.
parent f8fa114a
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment