diff options
| author | Johann-S <[email protected]> | 2019-08-02 15:51:05 +0200 |
|---|---|---|
| committer | Johann-S <[email protected]> | 2019-08-02 16:50:05 +0200 |
| commit | 8b2b490f9b58a02494fe8567d6ce5b9c11a9bf65 (patch) | |
| tree | fca5d7d55bb5f2932eda48f4594b4a839b0a8987 /js/src/carousel | |
| parent | 1ebb8e7d9b4bd52c7fc088aeaec12ab9bcb240c6 (diff) | |
| download | bootstrap-8b2b490f9b58a02494fe8567d6ce5b9c11a9bf65.tar.xz bootstrap-8b2b490f9b58a02494fe8567d6ce5b9c11a9bf65.zip | |
add a way to disable jQuery detection
Diffstat (limited to 'js/src/carousel')
| -rw-r--r-- | js/src/carousel/carousel.js | 6 |
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 |
