]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Carousel: simplify initialization on document load, using `getOrCreateInstance`
authorGeoSot <geo.sotis@gmail.com>
Fri, 10 Sep 2021 00:41:03 +0000 (03:41 +0300)
committerXhmikosR <xhmikosr@gmail.com>
Sat, 19 Feb 2022 12:52:36 +0000 (14:52 +0200)
js/src/carousel.js

index 38e33cbee39625a66a48078871bce816e2d7ce38..4cb03d51fefe38fe56646abe8f3d436f481d0bb3 100644 (file)
@@ -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)
   }
 })