]> git.parisson.com Git - pdf.js.git/commitdiff
use an array not an object to cache objects
authorAndreas Gal <andreas.gal@gmail.com>
Sun, 5 Jun 2011 06:15:51 +0000 (23:15 -0700)
committerAndreas Gal <andreas.gal@gmail.com>
Sun, 5 Jun 2011 06:15:51 +0000 (23:15 -0700)
pdf.js

diff --git a/pdf.js b/pdf.js
index 1f74f0ef50690262a3d8ce68639fa9d9bb1e0ba8..0342ca66fc9397e31aa544f00af93893b635e141 100644 (file)
--- 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 = {