Fix callback.
authorMichael M Slusarz <slusarz@curecanti.org>
Mon, 6 Apr 2009 23:19:00 +0000 (17:19 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Mon, 6 Apr 2009 23:19:00 +0000 (17:19 -0600)
imp/js/src/ViewPort.js

index 3459246..ec5bd5b 100644 (file)
@@ -164,12 +164,12 @@ var ViewPort = Class.create({
     // opts = (object) TODO [cacheid, noupdate, view]
     remove: function(vs, opts)
     {
-        if (this.isbusy) {
-            this.remove.bind(this, vs, cacheid, view).defer();
+        if (!vs.size()) {
             return;
         }
 
-        if (!vs.size()) {
+        if (this.isbusy) {
+            this.remove.bind(this, vs, opts).defer();
             return;
         }