mirror of
https://github.com/john-okeefe/foliate-js.git
synced 2026-09-09 11:29:14 -04:00
Yield when search finishes
This allows distinguishing between finished and aborted (with `Generator .prototype.return`) search
This commit is contained in:
@@ -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