mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-09 15:16:51 +02:00
add explicit error for lack of tether in tooltips - fixes #17273
This commit is contained in:
8
js/dist/tooltip.js
vendored
8
js/dist/tooltip.js
vendored
@@ -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
|
||||
|
Reference in New Issue
Block a user