1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-07 22:26:57 +02: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

View File

@@ -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/)')
}
/**
* ------------------------------------------------------------------------