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:
+2
-1
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user