This commit is contained in:
Alex Dima
2018-02-28 12:45:28 +01:00
parent 017dfed139
commit effcbdd218
3 changed files with 22 additions and 3 deletions

View File

@@ -128,6 +128,7 @@ export class ContextView {
public setContainer(container: HTMLElement): void {
if (this.$container) {
this.$container.getHTMLElement().removeChild(this.$view.getHTMLElement());
this.$container.off(ContextView.BUBBLE_UP_EVENTS);
this.$container.off(ContextView.BUBBLE_DOWN_EVENTS, true);
this.$container = null;