Fix background loading of INBOX
authorMichael M Slusarz <slusarz@curecanti.org>
Sat, 4 Apr 2009 06:03:16 +0000 (00:03 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Mon, 6 Apr 2009 16:54:54 +0000 (10:54 -0600)
imp/js/src/ViewPort.js

index 6610186..63ba2f3 100644 (file)
@@ -66,11 +66,12 @@ var ViewPort = Class.create({
                 // Need to store current buffer to save current offset
                 this.views.set(this.view, { buffer: this._getBuffer(), offset: this.currentOffset() });
             }
-            curr = this.views.get(view);
         } else {
             init = true;
         }
 
+        curr = this.views.get(view);
+
         if (background) {
             opts = { background: true, view: view };
         } else {