2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-05-21 13:24:08 +03: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
+1
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')",