2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-08 17:22:31 +03:00

fix(plugins): save instance in constructor

This commit is contained in:
Johann-S
2018-06-24 22:02:03 +02:00
committed by XhmikosR
parent 5dcca44fcf
commit 467dd113c5
8 changed files with 19 additions and 15 deletions
+1 -1
View File
@@ -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') {