diff options
author | Johann-S <johann.servoire@gmail.com> | 2017-10-03 15:27:36 +0300 |
---|---|---|
committer | Johann-S <johann.servoire@gmail.com> | 2017-10-04 10:55:32 +0300 |
commit | b29b1e155880ac953899889c9cbb67f7f7df0529 (patch) | |
tree | db9d6923c082243d765c57885992db8dd26a70b5 /js/src/index.js | |
parent | 722407f502f3589a4b4a110bb3a374fd057bb85d (diff) |
Use imported jQuery object
Diffstat (limited to 'js/src/index.js')
-rw-r--r-- | js/src/index.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/src/index.js b/js/src/index.js index 84a27880e9..2629e507fc 100644 --- a/js/src/index.js +++ b/js/src/index.js @@ -19,7 +19,7 @@ import Util from './util' */ (() => { - if (typeof jQuery === 'undefined') { + if (typeof $ === 'undefined') { throw new Error('Bootstrap\'s JavaScript requires jQuery. jQuery must be included before Bootstrap\'s JavaScript.') } @@ -29,7 +29,7 @@ import Util from './util' if (version[0] < min || version[0] >= max) { throw new Error('Bootstrap\'s JavaScript requires at least jQuery v3.0.0 but less than v4.0.0') } -})(jQuery) +})($) export { Util, |