Fix is_leaf test

instanceof String doesn't work, we must use typeof
This commit is contained in:
Cédric Krier committed 2015-05-15 15:29:07 +02:00
1 parent 2be4efc6cf
commit 3252e8e129
1 file changed
+1 -1
+1 -1
View File
@@ -1931,7 +1931,7 @@
is_leaf: function(expression) {
return ((expression instanceof Array) &&
(expression.length > 2) &&
(expression[1] instanceof String));
(typeof expression[1] == 'string'));
},
eval_leaf: function(part, context, boolop) {
if (boolop === undefined) {