Merge thumbnail view feature contributed by scollett
[bookreader.git] / BookReader / BookReader.js
index 0c101a3..e581dda 100644 (file)
@@ -40,10 +40,13 @@ function BookReader() {
     this.padding = 10;
     this.mode    = 1; //1, 2, 3
     this.ui = 'full'; // UI mode
+
+    // thumbnail mode
     this.thumbWidth = 100;
     this.thumbRowBuffer = 3; // number of rows to pre-cache out a view
     this.displayedRows=[];
-    this.displayedIndices = [];        
+    
+    this.displayedIndices = [];
     //this.indicesToDisplay = [];
     this.imgs = {};
     this.prefetchedImgs = {}; //an object with numeric keys cooresponding to page index