From 3252e8e129bbfd7ddb092db67fa41f7a36aa3b74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 15 May 2015 15:29:07 +0200 Subject: [PATCH] Fix is_leaf test instanceof String doesn't work, we must use typeof --- src/common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common.js b/src/common.js index 800a997c30..b1819bb171 100644 --- a/src/common.js +++ b/src/common.js @@ -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) {