Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify the
newRefs
computation in the "SaveDocument"-handler in t…
…he worker-thread - Let the `Page.save`-method filter out "empty" entries, similar to the `Page._parsedAnnotations`-getter, since that on its own already simplifies the "SaveDocument"-handler a tiny bit. - The existing `reduce` and `concat` construction isn't exactly a wonder of readability :-) Thanks to modern JavaScript features it should be possible to replace all of this with `Array.prototype.flat()` instead, which at least to me feels a lot easier to understand.
- Loading branch information