1
0
Fork 0
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:
Yury Delendik 2014-03-26 09:07:38 -05:00
parent 9a36184dfa
commit 31f081ae17
7 changed files with 93 additions and 18 deletions

View file

@ -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);
},