2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-08 17:22:31 +03:00

add explicit error for lack of tether in tooltips - fixes #17273

This commit is contained in:
Jacob Thornton
2015-11-14 20:35:10 -08:00
parent a3d7f79ae9
commit d600831a15
6 changed files with 34 additions and 2 deletions
+8
View File
@@ -2764,6 +2764,14 @@ var Tab = (function ($) {
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/)");
}
/**
* ------------------------------------------------------------------------
* Constants
+1 -1
View File
File diff suppressed because one or more lines are too long
+8
View File
@@ -32,6 +32,14 @@
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/)");
}
/**
* ------------------------------------------------------------------------
* Constants