0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-11-29 11:24:18 +01:00

Carousel: simplify initialization on document load, using getOrCreateInstance

This commit is contained in:
GeoSot 2021-09-10 03:41:03 +03:00 committed by XhmikosR
parent ccba6a3589
commit a247fe9b27

View 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)
}
})