mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-05 13:17:32 +02:00
Carousel: simplify initialization on document load, using getOrCreateInstance
This commit is contained in:
@@ -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