summaryrefslogtreecommitdiffstatshomepage
path: root/core/misc/tableselect.js
diff options
context:
space:
mode:
authorAlex Pott <alex.a.pott@googlemail.com>2015-04-19 17:30:43 +0200
committerAlex Pott <alex.a.pott@googlemail.com>2015-04-19 17:30:43 +0200
commit49a1b846ec4b8664cadb52afcc15aadc9e295050 (patch)
treeeef94487c1364f108cce77a37b7b3b9b2f79816a /core/misc/tableselect.js
parent6cd48a6d5d2295729a1f237bf297e0bb83926771 (diff)
downloaddrupal-49a1b846ec4b8664cadb52afcc15aadc9e295050.tar.gz
drupal-49a1b846ec4b8664cadb52afcc15aadc9e295050.zip
Issue #2461531 by nod_, lauriii, pguillard: ESlint 0.18.0 compatibility and new rule
Diffstat (limited to 'core/misc/tableselect.js')
-rw-r--r--core/misc/tableselect.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/core/misc/tableselect.js b/core/misc/tableselect.js
index 8f91d5e3585d..78e8c90fd104 100644
--- a/core/misc/tableselect.js
+++ b/core/misc/tableselect.js
@@ -16,7 +16,9 @@
}
// Keep track of the table, which checkbox is checked and alias the settings.
- var table = this, checkboxes, lastChecked;
+ var table = this;
+ var checkboxes;
+ var lastChecked;
var $table = $(table);
var strings = {'selectAll': Drupal.t('Select all rows in this table'), 'selectNone': Drupal.t('Deselect all rows in this table')};
var updateSelectAll = function (state) {
@@ -71,7 +73,8 @@
var mode = from.rowIndex > to.rowIndex ? 'previousSibling' : 'nextSibling';
// Traverse through the sibling nodes.
- for (var i = from[mode], $i; i; i = i[mode]) {
+ for (var i = from[mode]; i; i = i[mode]) {
+ var $i;
// Make sure that we're only dealing with elements.
if (i.nodeType !== 1) {
continue;