From 8ac09de41e856d0c4ea9d99c0d0eb47d9f36df54 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Mon, 6 Apr 2009 17:19:00 -0600 Subject: [PATCH] Fix callback. --- imp/js/src/ViewPort.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/imp/js/src/ViewPort.js b/imp/js/src/ViewPort.js index 345924615..ec5bd5b58 100644 --- a/imp/js/src/ViewPort.js +++ b/imp/js/src/ViewPort.js @@ -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; } -- 2.11.0