pdf.js/src
Jonas Jenwald 3a20fd165f Refactor ObjectLoader to use Dicts correctly, rather than abusing their internal properties
The `ObjectLoader` currently takes an Object as input, despite actually working with `Dict`s internally. This means that at the (two) existing call-sites, we're passing in the "private" `Dict.map` property directly.

Doing this seems like an anti-pattern, and we could (and even should) simply provide the actual `Dict` when creating an `ObjectLoader` instance.
Accessing properties stored in the `Dict` is now done using the intended methods instead, in particular `getRaw` which (as the name suggests) doesn't do any de-referencing, thus maintaining the current functionality of the code.

The only functional change in this patch is that `ObjectLoader.load` will now ignore empty nodes, such that `ObjectLoader._walk` only needs to deal with nodes that are known to contain data. (This lets us skip, among other checks, meaningless `addChildren` function calls.)
2017-06-16 22:59:32 +02:00
..
core Refactor ObjectLoader to use Dicts correctly, rather than abusing their internal properties 2017-06-16 22:59:32 +02:00
display Fixes WeakMap polyfill (and improves PDFWorker port check). 2017-06-13 09:36:58 -05:00
images Vectorize the logo. 2012-10-29 14:08:52 -04:00
shared Merge pull request #8515 from yurydelendik/bloborigin 2017-06-16 11:21:45 -05:00
doc_helper.js Switch to using ESLint, instead of JSHint, for linting 2016-12-16 21:06:36 +01:00
license_header.js Replace copyright headers; changes UMD to CommonJS. 2017-02-08 16:35:58 -06:00
pdf.js Removes last UMDs from the modules. 2017-05-31 07:14:17 -05:00
pdf.worker.entry.js Switch to using ESLint, instead of JSHint, for linting 2016-12-16 21:06:36 +01:00
pdf.worker.js ES6 modules: remove UMD header validation 2017-03-04 21:43:25 +01:00
worker_loader.js Replaces RequireJS to SystemJS. 2017-02-27 08:32:39 -06:00