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-06-10 18:41:32 +0300
committerXhmikosR <xhmikosr@gmail.com>2020-06-17 16:58:56 +0300
commit8debdf6ce6c944d58a53dfc0288e44a0598a0b1d (patch)
tree5d66c647dc10e403a843037e44cd85899c64899f /js/src/collapse.js
parent94a5d87e15092b090aff70d0bae88d2ff406076e (diff)
Remove a couple of variables used once
Diffstat (limited to 'js/src/collapse.js')
-rw-r--r--js/src/collapse.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/js/src/collapse.js b/js/src/collapse.js
index 639369b017..be65529556 100644
--- a/js/src/collapse.js
+++ b/js/src/collapse.js
@@ -287,8 +287,7 @@ class Collapse {
}
_getDimension() {
- const hasWidth = this._element.classList.contains(WIDTH)
- return hasWidth ? WIDTH : HEIGHT
+ return this._element.classList.contains(WIDTH) ? WIDTH : HEIGHT
}
_getParent() {