8000 Merge pull request #18267 from twbs/v4-dev-xmr-revert-jquery2-require… · liuwenye2010/bootstrap@ed624a8 · GitHub
[go: up one dir, main page]

Skip to content

Commit ed624a8

Browse files
committed
< 8000 div>Merge pull request twbs#18267 from twbs/v4-dev-xmr-revert-jquery2-requirement
Revert "Make jQuery 2.0 the minimum supported version."
2 parents 7a2ba9a + 2a8b0ba commit ed624a8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Gruntfile.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ module.exports = function (grunt) {
6363
'}\n',
6464
jqueryVersionCheck: '+function ($) {\n' +
6565
' var version = $.fn.jquery.split(\' \')[0].split(\'.\')\n' +
66-
' if (version[0] !== \'2\') {\n' +
67-
' throw new Error(\'Bootstrap\\\'s JavaScript requires jQuery version 2.x.x\')\n' +
66+
' if ((version[0] < 2 && version[1] < 9) || (version[0] == 1 && version[1] == 9 && version[2] < 1) || (version[0] >= 3)) {\n' +
67+
' throw new Error(\'Bootstrap\\\'s JavaScript requires at least jQuery v1.9.1 but less than v3.0.0\')\n' +
6868
' }\n' +
6969
'}(jQuery);\n\n',
7070

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@
2929
"test-infra"
3030
],
3131
"dependencies": {
32-
"jquery": "2"
32+
"jquery": "1.9.1 - 2"
3333
}
3434
}

0 commit comments

Comments
 (0)
0