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/popover.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/popover.js')
-rw-r--r--js/src/popover.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/js/src/popover.js b/js/src/popover.js
index 2d423f0dd5..4aac7e8ab2 100644
--- a/js/src/popover.js
+++ b/js/src/popover.js
@@ -113,8 +113,7 @@ class Popover extends Tooltip {
this.setElementContent(SelectorEngine.findOne(SELECTOR_CONTENT, tip), content)
- tip.classList.remove(CLASS_NAME_FADE)
- tip.classList.remove(CLASS_NAME_SHOW)
+ tip.classList.remove(CLASS_NAME_FADE, CLASS_NAME_SHOW)
}
_addAttachmentClass(attachment) {