1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-25 17:48:07 +02:00

Re-factor Catalog._collectJavaScript to use a Map rather than an Object

Given that this only an internal helper method, used by the `Catalog.{javaScript, jsActions}` getters, this change simplifies iteration of the returned data.
We can also (slightly) re-factor the code of the `jsActions` getter, and remove an obsolete[1] JSDoc-comment from the `openAction` getter.

---
[1] Not really relevant now that we've got proper scripting support.
This commit is contained in:
Jonas Jenwald 2021-04-13 12:02:16 +02:00
parent 6cf3070008
commit 4aa27cc645
2 changed files with 9 additions and 14 deletions

View file

@ -517,7 +517,6 @@ class Page {
this.pageDict,
PageActionEventType
);
return shadow(this, "jsActions", actions);
}
}