From 70e415900c0accbe1ef3bd84ec9c6867ef7f70f6 Mon Sep 17 00:00:00 2001 From: Brendan Dahl Date: Mon, 6 Aug 2012 14:32:54 -0700 Subject: [PATCH] Address review comments. --- src/core.js | 4 ++-- test/pdfs/issue1729.pdf.link | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/core.js b/src/core.js index 1ee01d7e5..8519e2e68 100644 --- a/src/core.js +++ b/src/core.js @@ -403,7 +403,7 @@ var PDFDocument = (function PDFDocumentClosure() { return true; /* found */ } - var DOCUMENT_INFO = { + var DocumentInfoValidators = { get entries() { // Lazily build this since all the validation functions below are not // defined until after this file loads. @@ -518,7 +518,7 @@ var PDFDocument = (function PDFDocumentClosure() { var infoDict = this.xref.trailer.get('Info'); docInfo = {}; - var validEntries = DOCUMENT_INFO.entries; + var validEntries = DocumentInfoValidators.entries; // Only fill the document info with valid entries from the spec. for (var key in validEntries) { if (infoDict.has(key)) { diff --git a/test/pdfs/issue1729.pdf.link b/test/pdfs/issue1729.pdf.link index ca6fa690c..a6a73d5a7 100644 --- a/test/pdfs/issue1729.pdf.link +++ b/test/pdfs/issue1729.pdf.link @@ -1,2 +1 @@ http://www.environmentallights.com/files/documents/ir_light_hazard.pdf -