use an array not an object to cache objects

This commit is contained in:
Andreas Gal 2011-06-04 23:15:51 -07:00
parent 47f0326eee
commit 5c06cd1de5

2
pdf.js
View File

@ -1151,7 +1151,7 @@ var XRef = (function() {
error("Invalid root reference");
// prepare the XRef cache
this.cache = Object.create(null);
this.cache = [];
}
constructor.prototype = {