mirror of
https://github.com/john-okeefe/foliate-js.git
synced 2026-10-25 06:59:51 -04:00
Yield when search finishes
This allows distinguishing between finished and aborted (with `Generator .prototype.return`) search
This commit is contained in:
1 parent
5da3be5200
commit
1396bd2b89
1 file changed
+1
@@ -269,6 +269,7 @@ export class View {
|
|||||||
label: this.#tocProgress.getProgress(result.index)?.label ?? '',
|
label: this.#tocProgress.getProgress(result.index)?.label ?? '',
|
||||||
subitems: result.subitems,
|
subitems: result.subitems,
|
||||||
} : result
|
} : result
|
||||||
|
yield 'done'
|
||||||
}
|
}
|
||||||
destroy() {
|
destroy() {
|
||||||
this.book.destroy?.()
|
this.book.destroy?.()
|
||||||
|
|||||||
Reference in new issue
Block a user