mirror of
https://github.com/twbs/bootstrap.git
synced 2024-11-29 11:24:18 +01:00
add explicit error for lack of tether in tooltips - fixes #17273
This commit is contained in:
parent
a3d7f79ae9
commit
d600831a15
@ -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
|
||||
|
2
dist/js/bootstrap.min.js
vendored
2
dist/js/bootstrap.min.js
vendored
File diff suppressed because one or more lines are too long
8
dist/js/umd/tooltip.js
vendored
8
dist/js/umd/tooltip.js
vendored
@ -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
|
||||
|
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
|
||||
|
2
js/dist/tooltip.js.map
vendored
2
js/dist/tooltip.js.map
vendored
File diff suppressed because one or more lines are too long
@ -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/)')
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user