]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Make jQuery 2.0 the minimum supported version. 17494/head
authorXhmikosR <xhmikosr@gmail.com>
Sat, 19 Sep 2015 07:26:12 +0000 (10:26 +0300)
committerXhmikosR <xhmikosr@gmail.com>
Sat, 24 Oct 2015 16:09:33 +0000 (19:09 +0300)
Gruntfile.js
bower.json
grunt/configBridge.json

index f3f38876627e8db10b4a8907d8c7b4fc1d5ddaf6..c80834aa38e3f6c7d86c4632340f3d3e689c25d5 100644 (file)
@@ -46,8 +46,8 @@ module.exports = function (grunt) {
                  '}\n',
     jqueryVersionCheck: '+function ($) {\n' +
                         '  var version = $.fn.jquery.split(\' \')[0].split(\'.\')\n' +
-                        '  if ((version[0] < 2 && version[1] < 9) || (version[0] == 1 && version[1] == 9 && version[2] < 1)) {\n' +
-                        '    throw new Error(\'Bootstrap\\\'s JavaScript requires jQuery version 1.9.1 or higher\')\n' +
+                        '  if (version[0] !== \'2\') {\n' +
+                        '    throw new Error(\'Bootstrap\\\'s JavaScript requires jQuery version 2.x.x\')\n' +
                         '  }\n' +
                         '}(jQuery);\n\n',
 
index 0d24a6392cd099f776b6b6ffaee2e54b9a061c5e..b7e9f645f22602f77bd0712465f4a36c2323674c 100644 (file)
@@ -29,6 +29,6 @@
     "test-infra"
   ],
   "dependencies": {
-    "jquery": "1.9.1 - 2"
+    "jquery": "2"
   }
 }
index 250aa1677294ed1c926251ce0a08c3e8aa133945..7b965bbb5d66c0db5afeec959cb4e2b286e4c337 100644 (file)
@@ -7,21 +7,5 @@
       "../assets/js/vendor/tether.min.js",
       "../assets/js/src/application.js"
     ]
-  },
-  "config": {
-    "jqueryCheck": [
-      "if (typeof jQuery === 'undefined') {",
-      "  throw new Error('Bootstrap\\'s JavaScript requires jQuery')",
-      "}\n"
-    ],
-    "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) || (version[0] > 2)) {",
-      "    throw new Error('Bootstrap\\'s JavaScript requires jQuery version 1.9.1 or higher, but lower than version 3')",
-      "  }",
-      "}(jQuery);\n\n"
-    ]
   }
 }