From d600831a153c9930c3fe4e618b187951abc7b43b Mon Sep 17 00:00:00 2001 From: Jacob Thornton Date: Sat, 14 Nov 2015 20:35:10 -0800 Subject: add explicit error for lack of tether in tooltips - fixes #17273 --- js/src/tooltip.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'js/src') 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/)') + } + /** * ------------------------------------------------------------------------ -- cgit v1.2.3