mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-26 23:54:23 +01:00
use strict mode for jqueryVersionCheck; fixes #15535
This commit is contained in:
parent
82d786b5fe
commit
0dc8395590
@ -34,6 +34,7 @@
|
|||||||
],
|
],
|
||||||
"jqueryVersionCheck": [
|
"jqueryVersionCheck": [
|
||||||
"+function ($) {",
|
"+function ($) {",
|
||||||
|
" '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)) {",
|
||||||
" 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')",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user