remove listener on dispose
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
93e77a3fcd
commit
b8c01272f4
1 changed files with 1 additions and 0 deletions
|
@ -191,6 +191,7 @@ export class Platform {
|
|||
}
|
||||
}
|
||||
this._container.addEventListener("error", handleAvatarError, true);
|
||||
this._disposables.track(() => this._container.removeEventListener("error", handleAvatarError, true));
|
||||
window.__hydrogenViewModel = vm;
|
||||
const view = new RootView(vm);
|
||||
this._container.appendChild(view.mount());
|
||||
|
|
Reference in a new issue