aboutsummaryrefslogtreecommitdiff
path: root/dist/js/bootstrap.js
diff options
context:
space:
mode:
Diffstat (limited to 'dist/js/bootstrap.js')
-rw-r--r--dist/js/bootstrap.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/dist/js/bootstrap.js b/dist/js/bootstrap.js
index 0123631c9..4d4b14bb9 100644
--- a/dist/js/bootstrap.js
+++ b/dist/js/bootstrap.js
@@ -10,8 +10,8 @@ if (typeof jQuery === 'undefined') {
+function ($) {
var version = $.fn.jquery.split(' ')[0].split('.')
- if (version[0] !== '2') {
- throw new Error('Bootstrap\'s JavaScript requires jQuery version 2.x.x')
+ 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 at least jQuery v1.9.1 but less than v3.0.0')
}
}(jQuery);
@@ -2768,8 +2768,8 @@ var Tooltip = (function ($) {
* Check for Tether dependency
* Tether - http://github.hubspot.com/tether/
*/
- if (!window.Tether) {
- throw new Error("Bootstrap tooltips require Tether (http://github.hubspot.com/tether/)");
+ if (window.Tether === undefined) {
+ throw new Error('Bootstrap tooltips require Tether (http://github.hubspot.com/tether/)');
}
/**