From 4f520c7ff301ce42f01e32bd77606ce94384cd13 Mon Sep 17 00:00:00 2001 From: J2TeaM Date: Wed, 7 Sep 2016 10:09:54 +0700 Subject: [PATCH] Merge #20563 and #20567 --- js/src/popover.js | 4 +--- js/src/tooltip.js | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/js/src/popover.js b/js/src/popover.js index 7ea5608123..eae17f1d35 100644 --- a/js/src/popover.js +++ b/js/src/popover.js @@ -119,9 +119,7 @@ const Popover = (($) => { this.setElementContent($tip.find(Selector.TITLE), this.getTitle()) this.setElementContent($tip.find(Selector.CONTENT), this._getContent()) - $tip - .removeClass(ClassName.FADE) - .removeClass(ClassName.IN) + $tip.removeClass(`${ClassName.FADE} ${ClassName.IN}`) this.cleanupTether() } diff --git a/js/src/tooltip.js b/js/src/tooltip.js index 08daae2f2b..e0691f14c1 100644 --- a/js/src/tooltip.js +++ b/js/src/tooltip.js @@ -371,9 +371,7 @@ const Tooltip = (($) => { this.setElementContent($tip.find(Selector.TOOLTIP_INNER), this.getTitle()) - $tip - .removeClass(ClassName.FADE) - .removeClass(ClassName.IN) + $tip.removeClass(`${ClassName.FADE} ${ClassName.IN}`) this.cleanupTether() }