mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-01 13:24:25 +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)
|
const carousels = SelectorEngine.find(SELECTOR_DATA_RIDE)
|
||||||
|
|
||||||
for (const carousel of carousels) {
|
for (const carousel of carousels) {
|
||||||
Carousel.carouselInterface(carousel, Carousel.getInstance(carousel))
|
Carousel.getOrCreateInstance(carousel)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user