chore(model): moved destroyAll into close method

This commit is contained in:
Johannes Eder 2021-08-12 22:34:10 +02:00 committed by Sarah Vaupel
parent f1c50e137f
commit 49ac17f8e9

View File

@ -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) {