1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-28 22:39:11 +02: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

View File

@@ -96,6 +96,8 @@ class Collapse {
if (this._config.toggle) {
this.toggle()
}
Data.setData(element, DATA_KEY, this)
}
// Getters
@@ -358,7 +360,6 @@ class Collapse {
if (!data) {
data = new Collapse(element, _config)
Data.setData(element, DATA_KEY, data)
}
if (typeof config === 'string') {