]> git.parisson.com Git - pdf.js.git/commitdiff
reviewer comments
authorArtur Adib <arturadib@gmail.com>
Thu, 19 Jan 2012 14:11:48 +0000 (09:11 -0500)
committerArtur Adib <arturadib@gmail.com>
Thu, 19 Jan 2012 14:11:48 +0000 (09:11 -0500)
web/viewer.js

index bfa5467a4cfb4d86bf564f7022c4ab5584420c7a..b6b62af8332a891ed3610f2266e9dbe613420679 100644 (file)
@@ -979,7 +979,7 @@ var TextLayerBuilder = function textLayerBuilder(textLayerDiv) {
         if (textDiv.dataset.textLength > 1) { // avoid div by zero
           // Adjust div width (via letterSpacing) to match canvas text
           // Due to the .offsetWidth calls, this is slow
-          // **This needs to come after appending to the DOM**
+          // This needs to come after appending to the DOM
           textDiv.style.letterSpacing =
             ((textDiv.dataset.canvasWidth - textDiv.offsetWidth) /
               (textDiv.dataset.textLength - 1)) + 'px';
@@ -1001,7 +1001,7 @@ var TextLayerBuilder = function textLayerBuilder(textLayerDiv) {
       clearInterval(renderTimer);
 
       clearTimeout(scrollTimer);
-      scrollTimer = setTimeout(function() {
+      scrollTimer = setTimeout(function textLayerScrollTimer() {
         // Resume rendering
         renderTimer = setInterval(renderTextLayer, renderInterval);
       }, resumeInterval);