Fix removing flags in viewport
authorMichael M Slusarz <slusarz@curecanti.org>
Tue, 10 Mar 2009 04:49:30 +0000 (22:49 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Tue, 10 Mar 2009 04:49:30 +0000 (22:49 -0600)
imp/js/src/ViewPort.js

index 70cdf9e..05330b5 100644 (file)
@@ -807,7 +807,7 @@ var ViewPort = Class.create({
             if (add) {
                 r.bg.push(flag);
             } else {
-                r.bg.splice(r.bg.indexOf(flag), 1);
+                r.bg.without(flag);
             }
             if (filter) {
                 this._updateFlag(this.createSelection('uid', r.vp_id, r.view), flag, add);