]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Update jQuery version check and jQuery dependency version range (#20338)
authorChris Rebert <github@chrisrebert.com>
Thu, 21 Jul 2016 15:14:21 +0000 (08:14 -0700)
committerGitHub <noreply@github.com>
Thu, 21 Jul 2016 15:14:21 +0000 (08:14 -0700)
Closes #16834

[skip validator]

bower.json
grunt/configBridge.json

index 58ae0935bad342fa9b17fb6dc579058a11b14553..b1b1bc0da5d33dd7f7209f298cdf6265a7f30028 100644 (file)
@@ -29,6 +29,6 @@
     "test-infra"
   ],
   "dependencies": {
-    "jquery": "1.9.1 - 2"
+    "jquery": "1.9.1 - 3"
   }
 }
index 45cf98b88d13c72c8c7e624c42d297fd001e1b75..9d1a142f2117e536e15d71dd0dbcd2a0c99a1a28 100644 (file)
@@ -37,8 +37,8 @@
       "+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')",
+      "  if ((version[0] < 2 && version[1] < 9) || (version[0] == 1 && version[1] == 9 && version[2] < 1) || (version[0] > 3)) {",
+      "    throw new Error('Bootstrap\\'s JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4')",
       "  }",
       "}(jQuery);\n\n"
     ]