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");
|
error("Invalid root reference");
|
||||||
|
|
||||||
// prepare the XRef cache
|
// prepare the XRef cache
|
||||||
this.cache = Object.create(null);
|
this.cache = [];
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor.prototype = {
|
constructor.prototype = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue