mirror of
https://github.com/twbs/bootstrap.git
synced 2025-04-10 02:02:26 +02:00
Regroup our jQuery check in the same IIFE
This commit is contained in:
parent
c3fe53cd42
commit
a4667be152
@ -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 version = $.fn.jquery.split(' ')[0].split('.')
|
||||||
const min = 3
|
const min = 3
|
||||||
const max = 4
|
const max = 4
|
||||||
|
Loading…
x
Reference in New Issue
Block a user