]> git.parisson.com Git - pdf.js.git/commitdiff
Avoiding pageRefMap is not defined in the getDestinationHash()
authornotmasteryet <async.processingjs@yahoo.com>
Thu, 1 Dec 2011 01:04:45 +0000 (19:04 -0600)
committernotmasteryet <async.processingjs@yahoo.com>
Thu, 1 Dec 2011 01:04:45 +0000 (19:04 -0600)
web/viewer.js

index c8b8304315294f2342a73ba962c164ca2d0851cf..2e8ce0df65258d2d162fc9000b2cdac535fdc10d 100644 (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');