MCPcopy
hub / github.com/mathuo/dockview / dispose

Method dispose

packages/dockview-core/src/splitview/splitview.ts:1156–1173  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1154 }
1155
1156 public dispose(): void {
1157 this._onDidSashEnd.dispose();
1158 this._onDidAddView.dispose();
1159 this._onDidRemoveView.dispose();
1160
1161 for (let i = 0; i < this.element.children.length; i++) {
1162 if (this.element.children.item(i) === this.element) {
1163 this.element.removeChild(this.element);
1164 break;
1165 }
1166 }
1167
1168 for (const viewItem of this.viewItems) {
1169 viewItem.dispose();
1170 }
1171
1172 this.element.remove();
1173 }
1174}

Callers

nothing calls this directly

Calls 3

removeChildMethod · 0.80
disposeMethod · 0.65
removeMethod · 0.65

Tested by

no test coverage detected