Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeoSot <geo.sotis@gmail.com>2021-09-10 03:41:03 +0300
committerXhmikosR <xhmikosr@gmail.com>2022-02-19 15:52:36 +0300
commita247fe9b27ec57152f07aaa5dfc79f633d2b6d10 (patch)
tree089bf35d246a291c4ba2bbf230e633d1616ae9d0
parentccba6a3589ba33e25ab2919cb844b5bc870e2fef (diff)
Carousel: simplify initialization on document load, using `getOrCreateInstance`
-rw-r--r--js/src/carousel.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/carousel.js b/js/src/carousel.js
index 38e33cbee3..4cb03d51fe 100644
--- a/js/src/carousel.js
+++ b/js/src/carousel.js
@@ -510,7 +510,7 @@ EventHandler.on(window, EVENT_LOAD_DATA_API, () => {
const carousels = SelectorEngine.find(SELECTOR_DATA_RIDE)
for (const carousel of carousels) {
- Carousel.carouselInterface(carousel, Carousel.getInstance(carousel))
+ Carousel.getOrCreateInstance(carousel)
}
})