]> git.parisson.com Git - pdf.js.git/commitdiff
Fix finger print, remove unused code
authorYury Delendik <ydelendik@mozilla.com>
Thu, 12 Apr 2012 22:14:18 +0000 (15:14 -0700)
committerYury Delendik <ydelendik@mozilla.com>
Thu, 12 Apr 2012 22:14:18 +0000 (15:14 -0700)
src/worker.js
web/viewer.js

index 2075ff0ebb16663ba270818fa03a8b7297f110bd..d7b9b57182edf16023db7c0566ad01ca210ca4a8 100644 (file)
@@ -91,7 +91,7 @@ var WorkerMessageHandler = {
       pdfModel = new PDFDocument(new Stream(data));
       var doc = {
         numPages: pdfModel.numPages,
-        fingerprint: pdfModel.fingerprint,
+        fingerprint: pdfModel.getFingerprint(),
         destinations: pdfModel.catalog.destinations,
         outline: pdfModel.catalog.documentOutline,
         info: pdfModel.info,
index 4a6a91e7a716f8bfcce1296be4c74f349257229f..35ee38e42bcffdc57f711ae5b0d9aba520a5cfd5 100644 (file)
@@ -860,7 +860,6 @@ var PageView = function pageView(container, pdfPage, id, scale,
   }
 
   this.getPagePoint = function pageViewGetPagePoint(x, y) {
-    var scale = PDFView.currentScale;
     return this.viewport.convertToPdfPoint(x, y);
   };