1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-02-24 20:02:53 +01:00

Remove a couple of variables used once

This commit is contained in:
XhmikosR 2020-06-10 18:41:32 +03:00
parent 94a5d87e15
commit 8debdf6ce6
2 changed files with 2 additions and 7 deletions

View File

@ -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) {

View File

@ -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() {