From 8b2b490f9b58a02494fe8567d6ce5b9c11a9bf65 Mon Sep 17 00:00:00 2001 From: Johann-S Date: Fri, 2 Aug 2019 15:51:05 +0200 Subject: add a way to disable jQuery detection --- js/src/tooltip/tooltip.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'js/src/tooltip') diff --git a/js/src/tooltip/tooltip.js b/js/src/tooltip/tooltip.js index 7575bb89d..33f0173a3 100644 --- a/js/src/tooltip/tooltip.js +++ b/js/src/tooltip/tooltip.js @@ -6,7 +6,7 @@ */ import { - jQuery as $, + getjQuery, TRANSITION_END, emulateTransitionEnd, findShadowRoot, @@ -798,6 +798,8 @@ class Tooltip { } } +const $ = getjQuery() + /** * ------------------------------------------------------------------------ * jQuery @@ -805,7 +807,7 @@ class Tooltip { * add .tooltip to jQuery only if jQuery is present */ /* istanbul ignore if */ -if (typeof $ !== 'undefined') { +if ($) { const JQUERY_NO_CONFLICT = $.fn[NAME] $.fn[NAME] = Tooltip.jQueryInterface $.fn[NAME].Constructor = Tooltip -- cgit v1.2.3