From 7fb940c4ba5f7fb909bc453920f22314776b2456 Mon Sep 17 00:00:00 2001 From: Andreas Gal Date: Fri, 8 Jul 2011 01:02:14 -0700 Subject: [PATCH] revert a couple changes from the last merge --- fonts.js | 3 --- pdf.js | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/fonts.js b/fonts.js index 40259a36e..57e2e73c8 100755 --- 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 64eb2d452..e332e12e5 100644 --- 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 = {