Fix is_leaf test

instanceof String doesn't work, we must use typeof
This commit is contained in:
C?dric Krier 2015-05-15 15:29:07 +02:00
parent cb86e2c2aa
commit 6642eae6a0

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) {