pdf.js/src/scripting_api
Jonas Jenwald 38ee28b1d3 Use more optional chaining in the code-base
This patch updates a bunch of older code, that makes conditional function calls, to use optional chaining rather than `if`-blocks.

These mostly mechanical changes reduce the size of the `gulp mozcentral` build by a little over 1 kB.
2022-09-05 15:41:53 +02:00
..
aform.js Skip unknown fields when calculating a value in using AFSimple_Calculate 2022-08-03 23:40:09 +02:00
app.js Use more optional chaining in the code-base 2022-09-05 15:41:53 +02:00
color.js [Regression] Prevent the *built* pdf.scripting.js/pdf.sandbox.js files from accidentally including most of the main-thread code (PR 12631 follow-up) 2020-12-04 14:17:26 +01:00
common.js JS - Handle correctly hierarchy of fields (#13133) 2021-03-30 08:50:35 -07:00
console.js JS - Add the basic architecture to be able to execute embedded js 2020-10-21 19:00:56 +02:00
constants.js JS -- Add few missing constants in global scope 2021-01-11 17:19:28 +01:00
doc.js Use more optional chaining in the code-base 2022-09-05 15:41:53 +02:00
error.js JS - Add the basic architecture to be able to execute embedded js 2020-10-21 19:00:56 +02:00
event.js Use more optional chaining in the code-base 2022-09-05 15:41:53 +02:00
field.js [Annotations] charLimit === 0 means unlimited (bug 1782564) 2022-08-19 11:28:28 +02:00
fullscreen.js JS -- Implement app object 2020-11-20 15:46:52 +01:00
initialization.js [JS] Fix few bugs present in the pdf for issue #14862 2022-05-03 15:48:44 +02:00
pdf_object.js JS - Add the basic architecture to be able to execute embedded js 2020-10-21 19:00:56 +02:00
print_params.js JS -- Implement doc object 2020-11-10 16:16:42 +01:00
proxy.js JS - Add support for display property 2021-05-06 11:15:38 +02:00
thermometer.js JS -- Implement app object 2020-11-20 15:46:52 +01:00
util.js [JS] - Parse a date in using the given format first and then try the default date parser 2022-03-19 16:07:43 +01:00