From 32b6eae54b6f48004a49ffd31a8a2012b6d076a8 Mon Sep 17 00:00:00 2001 From: Kevin Brown Date: Fri, 27 Nov 2015 16:03:26 -0500 Subject: [PATCH] Explicitly require jquery-mousewheel now This fixes the implicit requirement of jquery-mousewheel that previously existed. This was not allowed, as pointed out in https://github.com/select2/select2/issues/3287#issuecomment-120408092 Now the requirement is more explicit, so everything should work as it was before. --- src/js/jquery.select2.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/js/jquery.select2.js b/src/js/jquery.select2.js index 8b578fc1..ef34bac3 100644 --- a/src/js/jquery.select2.js +++ b/src/js/jquery.select2.js @@ -1,13 +1,10 @@ define([ 'jquery', - 'require', + 'jquery-mousewheel', './select2/core', './select2/defaults' -], function ($, require, Select2, Defaults) { - // Force jQuery.mousewheel to be loaded if it hasn't already - require('jquery.mousewheel'); - +], function ($, _, Select2, Defaults) { if ($.fn.select2 == null) { // All methods that should return the element var thisMethods = ['open', 'close', 'destroy'];