mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-05-18 12:39:41 +03:00
add explicit error for lack of tether in tooltips - fixes #17273
This commit is contained in:
@@ -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
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+8
@@ -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
|
||||
|
||||
Vendored
+8
@@ -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
|
||||
|
||||
Vendored
+1
-1
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/)')
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user