]> git.parisson.com Git - pdf.js.git/commitdiff
Address Yury's comment 2.
authorBrendan Dahl <brendan.dahl@gmail.com>
Fri, 2 Dec 2011 16:58:40 +0000 (08:58 -0800)
committerBrendan Dahl <brendan.dahl@gmail.com>
Fri, 2 Dec 2011 16:58:40 +0000 (08:58 -0800)
web/viewer.js

index f3975c0385e810d9af5605669bbc05309ecdd0ed..2ccb155c2b754db1d5b56cada1067b85da2a6682 100644 (file)
@@ -263,9 +263,10 @@ var PDFView = {
     var container = document.getElementById('viewer');
     while (container.hasChildNodes())
       container.removeChild(container.lastChild);
-
+    
+    var pdf;
     try {
-      var pdf = new PDFJS.PDFDoc(data);
+      pdf = new PDFJS.PDFDoc(data);
     } catch (e) {
       this.error('An error occurred while reading the PDF.', e);
     }