1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-12 16:44:17 +02:00

Refactor: move disposing properties into the base class (#33740)

Moves more functionality to `base-component`, transferring the responsibility of disposal to parent class.
Each component, dusting disposal, sets its protected properties to `null`. So the same can be done in one place for all children components .
This commit is contained in:
GeoSot
2021-05-11 09:04:42 +03:00
committed by GitHub
parent 052def4568
commit 03842b5f25
9 changed files with 6 additions and 52 deletions

View File

@@ -162,9 +162,6 @@ class Offcanvas extends BaseComponent {
this._backdrop.dispose()
super.dispose()
EventHandler.off(document, EVENT_FOCUSIN)
this._config = null
this._backdrop = null
}
// Private