Skip to content

Commit 72a3dbe

Browse files
authored
Merge pull request gromo#148 from vldvel/patch-1
fix factory jquery
2 parents 904265b + c357342 commit 72a3dbe

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

jquery.scrollbar.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,13 @@
1313
*/
1414
;
1515
(function (root, factory) {
16+
'use strict';
1617
if (typeof define === 'function' && define.amd) {
1718
define(['jquery'], factory);
18-
} else if (typeof exports !== "undefined") {
19-
factory(require('jquery'));
19+
} else if (typeof exports !== 'undefined') {
20+
module.exports = factory(require('jquery'));
2021
} else {
21-
factory(root.jQuery);
22+
factory(jQuery);
2223
}
2324
}(this, function ($) {
2425
'use strict';

0 commit comments

Comments
 (0)