Add destroy method

Which revokes all blob URLs and removes the element from document.
This commit is contained in:
John Factotum committed 2023-05-09 14:02:07 +08:00
1 parent a817932b08
commit 5da3be5200
7 files changed
+45 -5

No files matched your search

+4
View File
@@ -270,4 +270,8 @@ export class View {
subitems: result.subitems,
} : result
}
destroy() {
this.book.destroy?.()
this.renderer?.destroy?.()
}
}