Fix flag checking for 'negative' flags if no other flags exist
authorMichael M Slusarz <slusarz@curecanti.org>
Thu, 12 Nov 2009 20:21:25 +0000 (13:21 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Thu, 12 Nov 2009 22:33:19 +0000 (15:33 -0700)
imp/js/DimpBase.js

index bb596e1..b5488ba 100644 (file)
@@ -2464,7 +2464,7 @@ var DimpBase = {
 
     hasFlag: function(f, r)
     {
-        return r.flag && this.convertFlag(f, r.flag.include(f));
+        return this.convertFlag(f, r.flag ? r.flag.include(f) : false);
     },
 
     convertFlag: function(f, set)