diff --git a/src/core/obj.js b/src/core/obj.js index bcb9c9054..f2bfdb635 100644 --- a/src/core/obj.js +++ b/src/core/obj.js @@ -493,17 +493,11 @@ var Catalog = (function CatalogClosure() { nameDictionaryRef = this.catDict.get('Dests'); } - if (nameDictionaryRef) { - // reading simple destination dictionary - obj = nameDictionaryRef; - obj.forEach(function catalogForEach(key, value) { - if (!value) { - return; - } - if (key === destinationId) { - dest = fetchDestination(value); - } - }); + if (nameDictionaryRef) { // Simple destination dictionary. + var value = nameDictionaryRef.get(destinationId); + if (value) { + dest = fetchDestination(value); + } } if (nameTreeRef) { var nameTree = new NameTree(nameTreeRef, xref);