mirror of https://github.com/twbs/bootstrap.git
Remove a couple of variables used once
This commit is contained in:
parent
94a5d87e15
commit
8debdf6ce6
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue