mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-17 09:52:29 +01:00
Merge pull request #18267 from twbs/v4-dev-xmr-revert-jquery2-requirement
Revert "Make jQuery 2.0 the minimum supported version."
This commit is contained in:
commit
ed624a805a
@ -63,8 +63,8 @@ module.exports = function (grunt) {
|
||||
'}\n',
|
||||
jqueryVersionCheck: '+function ($) {\n' +
|
||||
' var version = $.fn.jquery.split(\' \')[0].split(\'.\')\n' +
|
||||
' if (version[0] !== \'2\') {\n' +
|
||||
' throw new Error(\'Bootstrap\\\'s JavaScript requires jQuery version 2.x.x\')\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',
|
||||
|
||||
|
@ -29,6 +29,6 @@
|
||||
"test-infra"
|
||||
],
|
||||
"dependencies": {
|
||||
"jquery": "2"
|
||||
"jquery": "1.9.1 - 2"
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user