mirror of
https://github.com/Hopiu/bootstrap.git
synced 2026-03-28 02:00:23 +00:00
Carousel: simplify initialization on document load, using getOrCreateInstance
This commit is contained in:
parent
ccba6a3589
commit
a247fe9b27
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue