Commit d600831a authored by Jacob Thornton's avatar Jacob Thornton
Browse files

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

parent a3d7f79a
Showing with 33 additions and 1 deletion
+33 -1
......@@ -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
......
This diff is collapsed.
......@@ -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
......
......@@ -15,6 +15,14 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
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
......
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
......@@ -12,6 +12,14 @@ import Util from './util'
const Tooltip = (($) => {
/**
* 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/)')
}
/**
* ------------------------------------------------------------------------
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment