Correctly display status flags when updating viewport.
authorMichael M Slusarz <slusarz@curecanti.org>
Fri, 16 Jan 2009 19:33:11 +0000 (12:33 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Fri, 16 Jan 2009 19:37:20 +0000 (12:37 -0700)
imp/js/src/ViewPort.js

index 20163ec..e0bbc7d 100644 (file)
@@ -700,6 +700,12 @@ var ViewPort = Class.create({
                 c_nodes.push(this.template.evaluate(r));
             }, this);
             c.update(c_nodes.join(''));
+
+            if (this.opts.onUpdateClass) {
+                rows.get('div').each(function(d) {
+                    this.opts.onUpdateClass(d);
+                }, this);
+            }
         } else {
             // If loading a viewport for the first time, show a blank
             // viewport rather than the empty viewport status message.
@@ -819,7 +825,7 @@ var ViewPort = Class.create({
             }
 
             if (this.opts.onUpdateClass) {
-                this.opts.onUpdateClass(d, add);
+                this.opts.onUpdateClass(d);
             }
         }, this);
     },