1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-26 05:19:15 +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

@@ -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') {