mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-17 19:21:23 +03:00
Modal: drop loop (#38368)
We only have two elements to iterate over so it doesn't make a lot of sense to use a loop here
This commit is contained in:
+3
-3
@@ -139,12 +139,12 @@ class Modal extends BaseComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dispose() {
|
dispose() {
|
||||||
for (const htmlElement of [window, this._dialog]) {
|
EventHandler.off(window, EVENT_KEY)
|
||||||
EventHandler.off(htmlElement, EVENT_KEY)
|
EventHandler.off(this._dialog, EVENT_KEY)
|
||||||
}
|
|
||||||
|
|
||||||
this._backdrop.dispose()
|
this._backdrop.dispose()
|
||||||
this._focustrap.deactivate()
|
this._focustrap.deactivate()
|
||||||
|
|
||||||
super.dispose()
|
super.dispose()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user