chore(model): moved destroyAll into close method
This commit is contained in:
parent
f1c50e137f
commit
49ac17f8e9
@ -137,7 +137,6 @@ export class Modal {
|
||||
_onCloseClicked = (event) => {
|
||||
event.preventDefault();
|
||||
this._close();
|
||||
this._app.utilRegistry.destroyAll(this._element);
|
||||
}
|
||||
|
||||
_onKeyUp = (event) => {
|
||||
@ -165,6 +164,7 @@ export class Modal {
|
||||
this._modalsWrapper.classList.remove(MODALS_WRAPPER_OPEN_CLASS);
|
||||
|
||||
document.removeEventListener('keyup', this._onKeyUp);
|
||||
this._app.utilRegistry.destroyAll(this._element);
|
||||
};
|
||||
|
||||
_fillModal(url) {
|
||||
|
||||
Reference in New Issue
Block a user