mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-18 10:52:19 +01:00
Carousel: simplify initialization on document load, using getOrCreateInstance
This commit is contained in:
parent
ccba6a3589
commit
a247fe9b27
@ -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)
|
||||
}
|
||||
})
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user