diff options
| author | Johann-S <[email protected]> | 2017-08-31 19:19:10 +0200 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2017-08-31 20:54:15 +0300 |
| commit | a4667be152a3a4fed4e42f2a9efbf831bb5946b6 (patch) | |
| tree | f5134f0d8afa1be6dd305c9afc66b7be3ac804e5 /js/src/index.js | |
| parent | c3fe53cd42d8055b596f287e37497bc65d52eecf (diff) | |
| download | bootstrap-a4667be152a3a4fed4e42f2a9efbf831bb5946b6.tar.xz bootstrap-a4667be152a3a4fed4e42f2a9efbf831bb5946b6.zip | |
Regroup our jQuery check in the same IIFE
Diffstat (limited to 'js/src/index.js')
| -rw-r--r-- | js/src/index.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/js/src/index.js b/js/src/index.js index a3858dd24..84a27880e 100644 --- a/js/src/index.js +++ b/js/src/index.js @@ -18,11 +18,11 @@ import Util from './util' * -------------------------------------------------------------------------- */ -if (typeof jQuery === 'undefined') { - throw new Error('Bootstrap\'s JavaScript requires jQuery. jQuery must be included before Bootstrap\'s JavaScript.') -} - (() => { + if (typeof jQuery === 'undefined') { + throw new Error('Bootstrap\'s JavaScript requires jQuery. jQuery must be included before Bootstrap\'s JavaScript.') + } + const version = $.fn.jquery.split(' ')[0].split('.') const min = 3 const max = 4 |
