aboutsummaryrefslogtreecommitdiff
path: root/js/src/carousel
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/carousel')
-rw-r--r--js/src/carousel/carousel.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/js/src/carousel/carousel.js b/js/src/carousel/carousel.js
index 0bac655ea..40984fe80 100644
--- a/js/src/carousel/carousel.js
+++ b/js/src/carousel/carousel.js
@@ -6,7 +6,7 @@
*/
import {
- jQuery as $,
+ getjQuery,
TRANSITION_END,
emulateTransitionEnd,
getElementFromSelector,
@@ -615,6 +615,8 @@ EventHandler.on(window, Event.LOAD_DATA_API, () => {
}
})
+const $ = getjQuery()
+
/**
* ------------------------------------------------------------------------
* jQuery
@@ -622,7 +624,7 @@ EventHandler.on(window, Event.LOAD_DATA_API, () => {
* add .carousel to jQuery only if jQuery is present
*/
/* istanbul ignore if */
-if (typeof $ !== 'undefined') {
+if ($) {
const JQUERY_NO_CONFLICT = $.fn[NAME]
$.fn[NAME] = Carousel.jQueryInterface
$.fn[NAME].Constructor = Carousel