mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-05-15 11:59:39 +03:00
Carousel: simplify initialization on document load, using getOrCreateInstance
This commit is contained in:
+1
-1
@@ -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)
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user