diff --git a/core/misc/tableselect.js b/core/misc/tableselect.js
index c8d45ba37362ca24bf670bf230a0bb9254bb3e1b..b3ab4c42c02c0013e91ac4e2403e71bbcda1ecb6 100644
--- a/core/misc/tableselect.js
+++ b/core/misc/tableselect.js
@@ -1,4 +1,4 @@
-(function ($) {
+(function ($, Drupal) {
 
 "use strict";
 
@@ -90,4 +90,4 @@ Drupal.tableSelectRange = function (from, to, state) {
   }
 };
 
-})(jQuery);
+})(jQuery, Drupal);