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

Remove a couple of variables used once

parent 94a5d87e
Showing with 2 additions and 7 deletions
+2 -7
...@@ -61,11 +61,7 @@ class Alert { ...@@ -61,11 +61,7 @@ class Alert {
// Public // Public
close(element) { close(element) {
let rootElement = this._element const rootElement = element ? this._getRootElement(element) : this._element
if (element) {
rootElement = this._getRootElement(element)
}
const customEvent = this._triggerCloseEvent(rootElement) const customEvent = this._triggerCloseEvent(rootElement)
if (customEvent === null || customEvent.defaultPrevented) { if (customEvent === null || customEvent.defaultPrevented) {
......
...@@ -287,8 +287,7 @@ class Collapse { ...@@ -287,8 +287,7 @@ class Collapse {
} }
_getDimension() { _getDimension() {
const hasWidth = this._element.classList.contains(WIDTH) return this._element.classList.contains(WIDTH) ? WIDTH : HEIGHT
return hasWidth ? WIDTH : HEIGHT
} }
_getParent() { _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