From 5c17c32181cd0cc052ac1f3ef769946f9a7ae24c Mon Sep 17 00:00:00 2001
From: Dries <dries@buytaert.net>
Date: Sat, 14 Jul 2012 21:30:54 -0400
Subject: [PATCH] - Patch #1684816 by nod_: JSHint tableselect.js.

---
 core/misc/tableselect.js | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/core/misc/tableselect.js b/core/misc/tableselect.js
index 3b1330f2a8d1..36af8647d4b1 100644
--- a/core/misc/tableselect.js
+++ b/core/misc/tableselect.js
@@ -75,9 +75,7 @@ Drupal.tableSelectRange = function (from, to, state) {
     $i = $(i);
     // Either add or remove the selected class based on the state of the target checkbox.
     $i.toggleClass('selected', state);
-    $i.find('input:checkbox').each(function () {
-      this.checked = state;
-    });
+    $i.find('input:checkbox').attr('checked', state);
 
     if (to.nodeType) {
       // If we are at the end of the range, stop.
-- 
GitLab