mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-17 09:52:29 +01:00
Bootstrap v3 does not currently claim to be compatible with jQuery v3; closes #16834
[skip sauce] [skip validator]
This commit is contained in:
parent
ef1ce9ac0b
commit
9b1a213cf7
@ -29,6 +29,6 @@
|
|||||||
"test-infra"
|
"test-infra"
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"jquery": ">= 1.9.1"
|
"jquery": "1.9.1 - 2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -37,8 +37,8 @@
|
|||||||
"+function ($) {",
|
"+function ($) {",
|
||||||
" 'use strict';",
|
" 'use strict';",
|
||||||
" var version = $.fn.jquery.split(' ')[0].split('.')",
|
" var version = $.fn.jquery.split(' ')[0].split('.')",
|
||||||
" if ((version[0] < 2 && version[1] < 9) || (version[0] == 1 && version[1] == 9 && version[2] < 1)) {",
|
" if ((version[0] < 2 && version[1] < 9) || (version[0] == 1 && version[1] == 9 && version[2] < 1) || (version[0] > 2)) {",
|
||||||
" throw new Error('Bootstrap\\'s JavaScript requires jQuery version 1.9.1 or higher')",
|
" throw new Error('Bootstrap\\'s JavaScript requires jQuery version 1.9.1 or higher, but lower than version 3')",
|
||||||
" }",
|
" }",
|
||||||
"}(jQuery);\n\n"
|
"}(jQuery);\n\n"
|
||||||
]
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user