]> git.parisson.com Git - pdf.js.git/commitdiff
revert a couple changes from the last merge
authorAndreas Gal <andreas.gal@gmail.com>
Fri, 8 Jul 2011 08:02:14 +0000 (01:02 -0700)
committerAndreas Gal <andreas.gal@gmail.com>
Fri, 8 Jul 2011 08:02:14 +0000 (01:02 -0700)
fonts.js
pdf.js

index 40259a36e2f69c6d18a669ce49ac0f80830ea803..57e2e73c8e44bf6788bdf8636a51dd492edef570 100755 (executable)
--- a/fonts.js
+++ b/fonts.js
@@ -2,7 +2,6 @@
 /* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
 
 'use strict';
-var missingGlyphs = [];
 var isWorker = (typeof window == 'undefined');
 
 /**
@@ -1645,10 +1644,8 @@ CFF.prototype = {
     for (var i = 0; i < glyphs.length; i++) {
       var glyph = glyphs[i];
       var unicode = GlyphsUnicode[glyph.glyph];
-      
       if (!unicode) {
         if (glyph.glyph != '.notdef') {
-          missingGlyphs.push(glyph.glyph);
           warn(glyph.glyph +
                ' does not have an entry in the glyphs unicode dictionary');
         }
diff --git a/pdf.js b/pdf.js
index 64eb2d4526cf47b81666a3ec0f975b1efaaddd66..e332e12e5e0710ed16959799c58acf3c932a2296 100644 (file)
--- a/pdf.js
+++ b/pdf.js
@@ -1917,7 +1917,7 @@ var Cmd = (function() {
 
 var Dict = (function() {
   function constructor() {
-    this.map = {};
+    this.map = Object.create(null);
   }
 
   constructor.prototype = {