pdf.js/src/core
Jonas Jenwald f59c3a0644 Remove the remaining usages of new {Name,Cmd} in favor of {Name,Cmd}.get
Using `new {Name,Cmd}` should be avoided, since it creates a new object on *every* call, whereas `{Name,Cmd}.get` uses caches to only create *one* object regardless of how many times they are called.

Most of these are found in the unit-tests, where increased memory usage probably doesn't matter very much. But it still seems good to get rid of those cases, since no part of the codebase ought to advertise that usage.

Given the small size of the patch, I'm also tweaking a few comments and class names.
2016-04-08 12:14:05 +02:00
..
annotation.js Prevent failures in the Annotation code if the Rect array contains indirect objects (issue 7115) 2016-03-26 20:55:16 +01:00
arithmetic_decoder.js Adds UMD headers to core, display and shared files. 2015-12-15 13:24:39 -06:00
bidi.js Removes global PDFJS usage from the src/core/. 2016-03-23 19:24:37 -05:00
cff_parser.js Extract CFFParser from fonts.js (issue 6777) 2016-04-01 22:32:39 +02:00
charsets.js Adds UMD headers to core, display and shared files. 2015-12-15 13:24:39 -06:00
chunked_stream.js Makes PDF data reading Streams API friendly. 2016-02-18 13:17:53 -06:00
cmap.js Removes global PDFJS usage from the src/core/. 2016-03-23 19:24:37 -05:00
colorspace.js Refactors to remove stream.js dependency on colorspace.js 2016-04-01 07:36:16 -05:00
crypto.js Better crypto key length recovery. 2015-12-29 15:10:38 -06:00
document.js Removes global PDFJS usage from the src/core/. 2016-03-23 19:24:37 -05:00
encodings.js Refactor Encodings 2016-01-28 11:32:59 -06:00
evaluator.js Remove the remaining usages of new {Name,Cmd} in favor of {Name,Cmd}.get 2016-04-08 12:14:05 +02:00
font_renderer.js Extract CFFParser from fonts.js (issue 6777) 2016-04-01 22:32:39 +02:00
fonts.js Forces UMD header to have relative path and extension for CommonJS. 2016-04-02 11:10:36 -05:00
function.js Replaces literal {} created lookup tables with Object.create 2016-01-28 12:18:38 -06:00
glyphlist.js Lazify GlyphsUnicode. 2016-01-28 11:32:59 -06:00
image.js Refactors to remove stream.js dependency on colorspace.js 2016-04-01 07:36:16 -05:00
jbig2.js Remove unused variables 2015-12-16 23:52:16 +01:00
jpg.js Update JpegImage.getData to support forceRGBoutput for images with numComponents === 1 (issue 6066) 2016-02-18 10:12:37 +01:00
jpx.js Remove unused variables 2015-12-16 23:52:16 +01:00
metrics.js Lazify Metrics 2016-01-28 12:11:46 -06:00
murmurhash3.js Adds UMD headers to core, display and shared files. 2015-12-15 13:24:39 -06:00
network.js Makes PDF data reading Streams API friendly. 2016-02-18 13:17:53 -06:00
obj.js Merge pull request #6988 from timvandermeij/fileattachment-annotation 2016-02-24 12:58:06 +01:00
parser.js Removes core/stream circular dependency on core/parser. 2016-03-22 14:06:01 -05:00
pattern.js shading-pattern: Decreased Shadings.SMALL_NUMBER 2016-01-06 15:26:40 +01:00
pdf_manager.js Removes global PDFJS usage from the src/core/. 2016-03-23 19:24:37 -05:00
primitives.js Remove Dict_getAll since it is now unused 2016-02-12 22:32:07 +01:00
ps_parser.js Replaces literal {} created lookup tables with Object.create 2016-01-28 12:18:38 -06:00
standard_fonts.js Lazify stdFontMap, serifFonts, GlyphMapForStandardFonts 2016-01-28 11:51:54 -06:00
stream.js Refactors to remove stream.js dependency on colorspace.js 2016-04-01 07:36:16 -05:00
type1_parser.js Extract Type1Parser from fonts.js 2016-04-01 23:38:53 +02:00
unicode.js Convert uniXXXX glyph names to proper ones when building the charCodeToGlyphId map for TrueType fonts (bug 1132849, issue 6893, issue 6894) 2016-03-09 19:37:15 +01:00
worker.js Proxy global PDFJS.verbosity to properly configure shared/util. 2016-03-23 19:24:37 -05:00