Browse Source

use an array not an object to cache objects

Andreas Gal 14 years ago
parent
commit
5c06cd1de5
  1. 2
      pdf.js

2
pdf.js

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

Loading…
Cancel
Save