mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-21 18:54:30 +01:00
Check for jQuery >= 3.
Reword jQuery version mismatch error message since jQuery v3 isn't supported.
This commit is contained in:
parent
add3ce38f7
commit
2a8b0ba1b2
@ -63,8 +63,8 @@ module.exports = function (grunt) {
|
|||||||
'}\n',
|
'}\n',
|
||||||
jqueryVersionCheck: '+function ($) {\n' +
|
jqueryVersionCheck: '+function ($) {\n' +
|
||||||
' var version = $.fn.jquery.split(\' \')[0].split(\'.\')\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' +
|
' 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 jQuery version 1.9.1 or higher\')\n' +
|
' throw new Error(\'Bootstrap\\\'s JavaScript requires at least jQuery v1.9.1 but less than v3.0.0\')\n' +
|
||||||
' }\n' +
|
' }\n' +
|
||||||
'}(jQuery);\n\n',
|
'}(jQuery);\n\n',
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user