aboutsummaryrefslogtreecommitdiff
path: root/js/src
diff options
context:
space:
mode:
authorJacob Thornton <[email protected]>2015-11-14 20:35:10 -0800
committerJacob Thornton <[email protected]>2015-11-14 20:35:10 -0800
commitd600831a153c9930c3fe4e618b187951abc7b43b (patch)
tree1c43e8cedb6a40e28b68b3b7f3789db02dda05d7 /js/src
parenta3d7f79ae9f09e5772fe3ee30ba9c7cad4f8baaa (diff)
downloadbootstrap-d600831a153c9930c3fe4e618b187951abc7b43b.tar.xz
bootstrap-d600831a153c9930c3fe4e618b187951abc7b43b.zip
add explicit error for lack of tether in tooltips - fixes #17273
Diffstat (limited to 'js/src')
-rw-r--r--js/src/tooltip.js8
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/)')
+ }
+
/**
* ------------------------------------------------------------------------