|
|
@ -485,7 +485,7 @@ var Catalog = (function CatalogClosure() { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
var xref = this.xref; |
|
|
|
var xref = this.xref; |
|
|
|
var dest, nameTreeRef, nameDictionaryRef; |
|
|
|
var dest = null, nameTreeRef, nameDictionaryRef; |
|
|
|
var obj = this.catDict.get('Names'); |
|
|
|
var obj = this.catDict.get('Names'); |
|
|
|
if (obj && obj.has('Dests')) { |
|
|
|
if (obj && obj.has('Dests')) { |
|
|
|
nameTreeRef = obj.getRaw('Dests'); |
|
|
|
nameTreeRef = obj.getRaw('Dests'); |
|
|
@ -493,17 +493,11 @@ var Catalog = (function CatalogClosure() { |
|
|
|
nameDictionaryRef = this.catDict.get('Dests'); |
|
|
|
nameDictionaryRef = this.catDict.get('Dests'); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (nameDictionaryRef) { |
|
|
|
if (nameDictionaryRef) { // Simple destination dictionary.
|
|
|
|
// reading simple destination dictionary
|
|
|
|
var value = nameDictionaryRef.get(destinationId); |
|
|
|
obj = nameDictionaryRef; |
|
|
|
if (value) { |
|
|
|
obj.forEach(function catalogForEach(key, value) { |
|
|
|
|
|
|
|
if (!value) { |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (key === destinationId) { |
|
|
|
|
|
|
|
dest = fetchDestination(value); |
|
|
|
dest = fetchDestination(value); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
if (nameTreeRef) { |
|
|
|
if (nameTreeRef) { |
|
|
|
var nameTree = new NameTree(nameTreeRef, xref); |
|
|
|
var nameTree = new NameTree(nameTreeRef, xref); |
|
|
|