From 5c06cd1de5547036a9733c63622ef01d7345ada8 Mon Sep 17 00:00:00 2001 From: Andreas Gal Date: Sat, 4 Jun 2011 23:15:51 -0700 Subject: [PATCH] use an array not an object to cache objects --- pdf.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdf.js b/pdf.js index 1f74f0ef5..0342ca66f 100644 --- a/pdf.js +++ b/pdf.js @@ -1151,7 +1151,7 @@ var XRef = (function() { error("Invalid root reference"); // prepare the XRef cache - this.cache = Object.create(null); + this.cache = []; } constructor.prototype = {