]> git.parisson.com Git - pdf.js.git/commitdiff
Fix thumbnail's drawingRequired
authornotmasteryet <async.processingjs@yahoo.com>
Fri, 6 Jan 2012 00:39:48 +0000 (18:39 -0600)
committernotmasteryet <async.processingjs@yahoo.com>
Fri, 6 Jan 2012 00:39:48 +0000 (18:39 -0600)
web/viewer.js

index d9ef9b646f9e9855749582ef5278fcc2e5e7f061..c0dcbfb086eb2b647d277ff361f90ecd2e9f88a4 100644 (file)
@@ -878,6 +878,10 @@ var ThumbnailView = function thumbnailView(container, page, id, pageRatio) {
     return ctx;
   }
 
+  this.drawingRequired = function thumbnailViewDrawingRequired() {
+    return !this.hasImage;
+  };
+
   this.draw = function thumbnailViewDraw(callback) {
     if (this.hasImage) {
       callback();