0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-11-29 11:24:18 +01:00

use strict mode for jqueryVersionCheck; fixes #15535

This commit is contained in:
Chris Rebert 2015-01-13 12:19:43 -08:00
parent 82d786b5fe
commit 0dc8395590

View File

@ -34,6 +34,7 @@
],
"jqueryVersionCheck": [
"+function ($) {",
" 'use strict';",
" var version = $.fn.jquery.split(' ')[0].split('.')",
" 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')",