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:
authorXhmikosR <xhmikosr@gmail.com>2020-04-09 20:56:43 +0300
committerGitHub <noreply@github.com>2020-04-09 20:56:43 +0300
commit9a5033d41350f83d3b4814648934618ab4648e27 (patch)
tree4f5af04e3c591fc697334f83c56d1c1d02a9dfcb /js/src/tooltip.js
parent7126741ffb92469752aef4136b084cad40394a6a (diff)
Pass multiple classes to `classList.add` / `classList.remove` (#30537)
This is supported by our currently supported browsers.
Diffstat (limited to 'js/src/tooltip.js')
-rw-r--r--js/src/tooltip.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/js/src/tooltip.js b/js/src/tooltip.js
index 9a1dff3d6e..3f40b3da12 100644
--- a/js/src/tooltip.js
+++ b/js/src/tooltip.js
@@ -400,8 +400,7 @@ class Tooltip {
setContent() {
const tip = this.getTipElement()
this.setElementContent(SelectorEngine.findOne(SELECTOR_TOOLTIP_INNER, tip), this.getTitle())
- tip.classList.remove(CLASS_NAME_FADE)
- tip.classList.remove(CLASS_NAME_SHOW)
+ tip.classList.remove(CLASS_NAME_FADE, CLASS_NAME_SHOW)
}
setElementContent(element, content) {