diff options
| author | Jacob Thornton <[email protected]> | 2015-11-14 20:35:10 -0800 |
|---|---|---|
| committer | Jacob Thornton <[email protected]> | 2015-11-14 20:35:10 -0800 |
| commit | d600831a153c9930c3fe4e618b187951abc7b43b (patch) | |
| tree | 1c43e8cedb6a40e28b68b3b7f3789db02dda05d7 /js/src/tooltip.js | |
| parent | a3d7f79ae9f09e5772fe3ee30ba9c7cad4f8baaa (diff) | |
| download | bootstrap-d600831a153c9930c3fe4e618b187951abc7b43b.tar.xz bootstrap-d600831a153c9930c3fe4e618b187951abc7b43b.zip | |
add explicit error for lack of tether in tooltips - fixes #17273
Diffstat (limited to 'js/src/tooltip.js')
| -rw-r--r-- | js/src/tooltip.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/js/src/tooltip.js b/js/src/tooltip.js index 30c2f7165..173ee592e 100644 --- a/js/src/tooltip.js +++ b/js/src/tooltip.js @@ -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/)') + } + /** * ------------------------------------------------------------------------ |
