aboutsummaryrefslogtreecommitdiff
path: root/js/src/tab
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tab')
-rw-r--r--js/src/tab/tab.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/js/src/tab/tab.js b/js/src/tab/tab.js
index 2d4b8e30c..b2374fe91 100644
--- a/js/src/tab/tab.js
+++ b/js/src/tab/tab.js
@@ -6,7 +6,7 @@
*/
import {
- jQuery as $,
+ getjQuery,
TRANSITION_END,
emulateTransitionEnd,
getElementFromSelector,
@@ -242,6 +242,8 @@ EventHandler.on(document, Event.CLICK_DATA_API, Selector.DATA_TOGGLE, function (
data.show()
})
+const $ = getjQuery()
+
/**
* ------------------------------------------------------------------------
* jQuery
@@ -249,7 +251,7 @@ EventHandler.on(document, Event.CLICK_DATA_API, Selector.DATA_TOGGLE, function (
* add .tab to jQuery only if jQuery is present
*/
/* istanbul ignore if */
-if (typeof $ !== 'undefined') {
+if ($) {
const JQUERY_NO_CONFLICT = $.fn[NAME]
$.fn[NAME] = Tab.jQueryInterface
$.fn[NAME].Constructor = Tab