aboutsummaryrefslogtreecommitdiffstats
path: root/src/Scope.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/Scope.js')
-rw-r--r--src/Scope.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Scope.js b/src/Scope.js
index bd402744..ffac1317 100644
--- a/src/Scope.js
+++ b/src/Scope.js
@@ -433,7 +433,7 @@ Scope.prototype = {
*/
$eval: function(expr) {
var fn = isString(expr)
- ? parser(expr).statements()
+ ? expressionCompile(expr)
: expr || noop;
return fn(this);
},
@@ -495,7 +495,7 @@ Scope.prototype = {
function compileToFn(exp, name) {
var fn = isString(exp)
- ? parser(exp).statements()
+ ? expressionCompile(exp)
: exp;
assertArgFn(fn, name);
return fn;