[IMP] use boolean coertion in eval_bool instead of a ternary operator

bzr revid: xmo@openerp.com-20110310113257-07jom2dpt0t9uvs4
This commit is contained in:
Xavier Morel
2011-03-10 12:32:57 +01:00
parent deec9d4548
commit 5489bb8ebb
+1 -1
View File
@@ -76,7 +76,7 @@ var QWeb = {
return r;
},
eval_bool:function(e, v) {
return this.eval_object(e, v) ? true : false;
return !!this.eval_object(e, v);
},
trim : function(v, mode) {
if (!v || !mode) return v;