Add destroy method

Which revokes all blob URLs and removes the element from document.
This commit is contained in:
John Factotum
2023-05-09 14:02:07 +08:00
parent a817932b08
commit 5da3be5200
7 changed files with 45 additions and 5 deletions
+4
View File
@@ -270,4 +270,8 @@ export class View {
subitems: result.subitems,
} : result
}
destroy() {
this.book.destroy?.()
this.renderer?.destroy?.()
}
}