This commit is contained in:
meganrogge
2022-03-15 14:54:37 -04:00
parent 1905d7d8ca
commit 21263a5f60
5 changed files with 17 additions and 24 deletions
-3
View File
@@ -65,12 +65,9 @@ class Decoration extends Disposable implements IInternalDecoration {
) {
super();
this.marker = options.marker;
this.marker.onDispose(() => this.dispose());
}
public override dispose(): void {
this._onDispose.fire();
this.element?.remove();
this.element = undefined;
super.dispose();
}
}