diff options
author | Johann-S <johann.servoire@gmail.com> | 2017-08-31 20:19:10 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2017-08-31 20:54:15 +0300 |
commit | a4667be152a3a4fed4e42f2a9efbf831bb5946b6 (patch) | |
tree | f5134f0d8afa1be6dd305c9afc66b7be3ac804e5 /js/src/index.js | |
parent | c3fe53cd42d8055b596f287e37497bc65d52eecf (diff) |
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 a3858dd24b..84a27880e9 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 |