Fix is_leaf test
instanceof String doesn't work, we must use typeof
This commit is contained in:
1 parent
2be4efc6cf
commit
3252e8e129
1 file changed
+1
-1
+1
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user