mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-07-30 02:47:22 +02:00
Change defaultOptions, in the web/app_options.js file, to a Map
Compared to regular Objects there's a number of advantages to using Maps, e.g. they support proper iteration. Additionally the conditionally defined options are moved into the main list, to maintain alphabetical order for each individual `OptionKind`. Finally, the `enableSelectionRendering` option is moved to its "correct" position and the `enableFakeMLManager` option is limited to TESTING builds (since that's consistent with its usage in `web/app.js`). *Note:* Despite making the source-code larger, the size of the `gulp mozcentral` bundle is *reduced* by `686` bytes.
This commit is contained in:
parent
2ea8820d92
commit
5406d3159b
1443
web/app_options.js
1443
web/app_options.js
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user