Merge pull request #856 from notmasteryet/pageref-notdef

Avoiding pageRefMap is not defined in the getDestinationHash()
This commit is contained in:
Artur Adib 2011-12-01 12:01:42 -08:00
commit 92cf671329

View File

@ -238,10 +238,10 @@ var PDFView = {
pagesRefMap[pageRef.num + ' ' + pageRef.gen + ' R'] = i;
}
this.setScale(scale || kDefaultScale, true);
this.pagesRefMap = pagesRefMap;
this.destinations = pdf.catalog.destinations;
this.setScale(scale || kDefaultScale, true);
if (pdf.catalog.documentOutline) {
this.outline = new DocumentOutlineView(pdf.catalog.documentOutline);
var outlineSwitchButton = document.getElementById('outlineSwitch');