]> git.parisson.com Git - pdf.js.git/commitdiff
Fixing lint errors introduced by #505
authornotmasteryet <async.processingjs@yahoo.com>
Wed, 21 Sep 2011 22:28:48 +0000 (17:28 -0500)
committernotmasteryet <async.processingjs@yahoo.com>
Wed, 21 Sep 2011 22:28:48 +0000 (17:28 -0500)
web/viewer.js

index 72b540664bac034b737564b8b63ae2e63e7d1eb6..19f088c5941ed1f2f986f310817778e1d0ea4480 100644 (file)
@@ -110,15 +110,15 @@ var PDFView = {
     var xhr = new XMLHttpRequest();
     xhr.open('GET', url);
     xhr.mozResponseType = xhr.responseType = 'arraybuffer';
-    xhr.expected = (document.URL.indexOf('file:') === 0) ? 0 : 200; 
+    xhr.expected = (document.URL.indexOf('file:') === 0) ? 0 : 200;
     xhr.onprogress = PDFView.progressLevel;
 
     xhr.onreadystatechange = function() {
       if (xhr.readyState === 4 && xhr.status === xhr.expected) {
         var data = (xhr.mozResponseArrayBuffer || xhr.mozResponse ||
                     xhr.responseArrayBuffer || xhr.response);
-        
-        document.getElementById('loading').style.display = "none";
+
+        document.getElementById('loading').style.display = 'none';
         PDFView.load(data, scale);
       }
     };