mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-25 17:48:07 +02:00
Doesn't traverse cyclic references in Dict.getAll; reduces empty-Dict garbage
This commit is contained in:
parent
9a36184dfa
commit
31f081ae17
7 changed files with 93 additions and 18 deletions
|
@ -68,7 +68,7 @@ var Page = (function PageClosure() {
|
|||
// present, but can be empty. Some document omit it still. In this case
|
||||
// return an empty dictionary:
|
||||
if (value === undefined) {
|
||||
value = new Dict();
|
||||
value = Dict.empty;
|
||||
}
|
||||
return shadow(this, 'resources', value);
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue