Skip to content

Commit

Permalink
refactor(sheet-ui): simplified dispose
Browse files Browse the repository at this point in the history
Co-authored-by: Wenzhao Hu <wzhudev@gmail.com>
  • Loading branch information
hexf00 and wzhudev committed Mar 22, 2024
1 parent f8c1b66 commit 272c564
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,7 @@ export class SheetClipboardService extends Disposable implements ISheetClipboard
this._usmToHtml = new USMToHtmlService();
this._copyContentCache = new CopyContentCache();

this.disposeWithMe(toDisposable(() => {
this._htmlToUSM.dispose();
}));
this.disposeWithMe(this._htmlToUSM);
}

copyContentCache(): CopyContentCache {
Expand Down

0 comments on commit 272c564

Please sign in to comment.