Commit 8debdf6c authored by XhmikosR's avatar XhmikosR
Browse files

Remove a couple of variables used once

parent 94a5d87e
1 merge request!31948Examples/Floating-labels: fix bad behavior with autofill
Showing with 2 additions and 7 deletions
+2 -7
......@@ -61,11 +61,7 @@ class Alert {
// Public
close(element) {
let rootElement = this._element
if (element) {
rootElement = this._getRootElement(element)
}
const rootElement = element ? this._getRootElement(element) : this._element
const customEvent = this._triggerCloseEvent(rootElement)
if (customEvent === null || customEvent.defaultPrevented) {
......
......@@ -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() {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment