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:
+1
-1
@@ -143,6 +143,7 @@ class Tooltip {
|
||||
this.tip = null
|
||||
|
||||
this._setListeners()
|
||||
Data.setData(element, this.constructor.DATA_KEY, this)
|
||||
}
|
||||
|
||||
// Getters
|
||||
@@ -779,7 +780,6 @@ class Tooltip {
|
||||
|
||||
if (!data) {
|
||||
data = new Tooltip(this, _config)
|
||||
Data.setData(this, DATA_KEY, data)
|
||||
}
|
||||
|
||||
if (typeof config === 'string') {
|
||||
|
||||
Reference in New Issue
Block a user