1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 07:08:08 +02:00

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 = {