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