From: Michael M Slusarz Date: Mon, 6 Apr 2009 23:19:00 +0000 (-0600) Subject: Fix callback. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=8ac09de41e856d0c4ea9d99c0d0eb47d9f36df54;p=horde.git Fix callback. --- 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; }