mirror of
https://github.com/twbs/bootstrap.git
synced 2025-09-26 21:39:08 +02:00
fix(plugins): save instance in constructor
This commit is contained in:
@@ -119,6 +119,7 @@ class Carousel {
|
||||
this._pointerEvent = Boolean(window.PointerEvent || window.MSPointerEvent)
|
||||
|
||||
this._addEventListeners()
|
||||
Data.setData(element, DATA_KEY, this)
|
||||
}
|
||||
|
||||
// Getters
|
||||
@@ -526,7 +527,6 @@ class Carousel {
|
||||
|
||||
if (!data) {
|
||||
data = new Carousel(element, _config)
|
||||
Data.setData(element, DATA_KEY, data)
|
||||
}
|
||||
|
||||
if (typeof config === 'number') {
|
||||
|
Reference in New Issue
Block a user