Merge pull request #2405 from mehlis/patch-1

Update src/obj.js
This commit is contained in:
Yury Delendik 2012-11-24 14:20:50 -08:00
commit 914f4dc703

View File

@ -307,11 +307,13 @@ var Catalog = (function CatalogClosure() {
continue; continue;
} }
var names = obj.get('Names'); var names = obj.get('Names');
if (names) {
for (i = 0, n = names.length; i < n; i += 2) { for (i = 0, n = names.length; i < n; i += 2) {
dests[names[i]] = fetchDestination(xref.fetchIfRef(names[i + 1])); dests[names[i]] = fetchDestination(xref.fetchIfRef(names[i + 1]));
} }
} }
} }
}
return shadow(this, 'destinations', dests); return shadow(this, 'destinations', dests);
}, },
getPage: function Catalog_getPage(n) { getPage: function Catalog_getPage(n) {