mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
cleanup dispose
This commit is contained in:
@@ -126,9 +126,13 @@ export class Decoration extends Disposable implements IDecoration {
|
||||
if (this.isDisposed) {
|
||||
return;
|
||||
}
|
||||
this._container.removeChild(this._element!);
|
||||
if (!this.marker.isDisposed) {
|
||||
this.marker.dispose();
|
||||
}
|
||||
if (this._element) {
|
||||
this._container.removeChild(this._element);
|
||||
}
|
||||
this.isDisposed = true;
|
||||
this._marker.dispose();
|
||||
// Emit before super.dispose such that dispose listeners get a change to react
|
||||
this._onDispose.fire();
|
||||
super.dispose();
|
||||
|
||||
Reference in New Issue
Block a user