Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohann-S <johann.servoire@gmail.com>2018-06-24 23:02:03 +0300
committerXhmikosR <xhmikosr@gmail.com>2019-02-20 23:05:45 +0300
commit467dd113c50c50f69c1b17d40cbd41d0b175952a (patch)
tree79e497eb0a0a662c2155e62e4468ba215e2198a1 /js/src/popover.js
parent5dcca44fcfe3e4ae2820f4b8b115f006374985b3 (diff)
fix(plugins): save instance in constructor
Diffstat (limited to 'js/src/popover.js')
-rw-r--r--js/src/popover.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/src/popover.js b/js/src/popover.js
index b462326190..36640407b7 100644
--- a/js/src/popover.js
+++ b/js/src/popover.js
@@ -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))
}
}