diff options
| author | Chris Rebert <[email protected]> | 2015-11-16 09:28:11 +0200 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2015-11-16 09:53:23 +0200 |
| commit | 2a8b0ba1b291813c760bc8ace5af5707fbd371c9 (patch) | |
| tree | b86420d5b01a023ee51c43437bf318989c1c6ca6 | |
| parent | add3ce38f78094787634f6a145ad14bdfad57bb2 (diff) | |
| download | bootstrap-2a8b0ba1b291813c760bc8ace5af5707fbd371c9.tar.xz bootstrap-2a8b0ba1b291813c760bc8ace5af5707fbd371c9.zip | |
Check for jQuery >= 3.
Reword jQuery version mismatch error message since jQuery v3 isn't supported.
| -rw-r--r-- | Gruntfile.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Gruntfile.js b/Gruntfile.js index c17c353d3..cfb9d459c 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -63,8 +63,8 @@ module.exports = function (grunt) { '}\n', jqueryVersionCheck: '+function ($) {\n' + ' var version = $.fn.jquery.split(\' \')[0].split(\'.\')\n' + - ' if ((version[0] < 2 && version[1] < 9) || (version[0] == 1 && version[1] == 9 && version[2] < 1)) {\n' + - ' throw new Error(\'Bootstrap\\\'s JavaScript requires jQuery version 1.9.1 or higher\')\n' + + ' if ((version[0] < 2 && version[1] < 9) || (version[0] == 1 && version[1] == 9 && version[2] < 1) || (version[0] >= 3)) {\n' + + ' throw new Error(\'Bootstrap\\\'s JavaScript requires at least jQuery v1.9.1 but less than v3.0.0\')\n' + ' }\n' + '}(jQuery);\n\n', |
