Skip to content

Commit 32b6eae

Browse files
committed
Explicitly require jquery-mousewheel now
This fixes the implicit requirement of jquery-mousewheel that previously existed. This was not allowed, as pointed out in select2#3287 (comment) Now the requirement is more explicit, so everything should work as it was before.
1 parent 8edf3c6 commit 32b6eae

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

src/js/jquery.select2.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
define([
22
'jquery',
3-
'require',
3+
'jquery-mousewheel',
44

55
'./select2/core',
66
'./select2/defaults'
7-
], function ($, require, Select2, Defaults) {
8-
// Force jQuery.mousewheel to be loaded if it hasn't already
9-
require('jquery.mousewheel');
10-
7+
], function ($, _, Select2, Defaults) {
118
if ($.fn.select2 == null) {
129
// All methods that should return the element
1310
var thisMethods = ['open', 'close', 'destroy'];

0 commit comments

Comments
 (0)