diff options
author | Mark Otto <markdotto@gmail.com> | 2017-10-19 19:13:17 +0300 |
---|---|---|
committer | Mark Otto <markdotto@gmail.com> | 2017-10-19 19:13:17 +0300 |
commit | 6124e7f229c07424a41e716968a93a12fb22b608 (patch) | |
tree | 5d9789f8d618d8512318d6ced67d3d4747631b19 /dist/js/bootstrap.js | |
parent | 06641ca0b3fe28021907f30c6f297d40f789f2fa (diff) |
dist
Diffstat (limited to 'dist/js/bootstrap.js')
-rw-r--r-- | dist/js/bootstrap.js | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/dist/js/bootstrap.js b/dist/js/bootstrap.js index 6f9192faf7..4c7a368572 100644 --- a/dist/js/bootstrap.js +++ b/dist/js/bootstrap.js @@ -3821,11 +3821,14 @@ var Tab = function () { } var version = $.fn.jquery.split(' ')[0].split('.'); - var min = 3; - var max = 4; - - 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'); + var minMajor = 1; + var ltMajor = 2; + var minMinor = 9; + var minPatch = 1; + var maxMajor = 4; + + if (version[0] < ltMajor && version[1] < minMinor || version[0] === minMajor && version[1] === minMinor && version[2] < minPatch || version[0] >= maxMajor) { + throw new Error('Bootstrap\'s JavaScript requires at least jQuery v1.9.1 but less than v4.0.0'); } })($); |