Skip to content

Commit

Permalink
feat(plugin): remove event observer
Browse files Browse the repository at this point in the history
  • Loading branch information
AliceLanniste authored and Qiu-Jun committed Jul 8, 2024
1 parent f53ef2b commit fac931e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/core/plugin/WorkspacePlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ class WorkspacePlugin implements IPluginTempl {

destroy() {
this.resizeObserver.disconnect();
this.canvas.off();
console.log('pluginDestroy');
}
}
Expand Down

0 comments on commit fac931e

Please sign in to comment.