mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-17 19:21:23 +03:00
Remove a couple of variables used once
This commit is contained in:
+1
-5
@@ -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) {
|
||||||
|
|||||||
+1
-2
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user