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:
parent
47f0326eee
commit
5c06cd1de5
1 changed files with 1 additions and 1 deletions
2
pdf.js
2
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 = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue