Skip to content

Commit

Permalink
chore: adjust dockview disposable
Browse files Browse the repository at this point in the history
  • Loading branch information
mathuo committed Dec 22, 2024
1 parent 8650de9 commit 6fd641b
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions packages/dockview-core/src/dockview/dockviewComponent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -389,9 +389,9 @@ export class DockviewComponent
toggleClass(this.gridview.element, 'dv-dockview', true);
toggleClass(this.element, 'dv-debug', !!options.debug);

if (options.debug) {
this.addDisposables(new StrictEventsSequencing(this));
}
// if (options.debug) {
this.addDisposables(new StrictEventsSequencing(this));
// }

this.addDisposables(
this.overlayRenderContainer,
Expand Down Expand Up @@ -577,11 +577,6 @@ export class DockviewComponent
this.updateWatermark();
}

override dispose(): void {
this.clear(); // explicitly clear the layout before cleaning up
super.dispose();
}

override setVisible(panel: DockviewGroupPanel, visible: boolean): void {
switch (panel.api.location.type) {
case 'grid':
Expand Down

0 comments on commit 6fd641b

Please sign in to comment.