1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-28 06:20: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

@@ -134,10 +134,10 @@ class Popover extends Tooltip {
_cleanTipClass() {
const tip = this.getTipElement()
const tabClass = tip.getAttribute('class').match(BSCLS_PREFIX_REGEX)
if (tabClass !== null && tabClass.length > 0) {
tabClass.map((token) => token.trim()).forEach((tClass) => {
tip.classList.remove(tClass)
})
tabClass.map((token) => token.trim())
.forEach((tClass) => tip.classList.remove(tClass))
}
}