aboutsummaryrefslogtreecommitdiffstats
path: root/src/Scope.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/Scope.js')
-rw-r--r--src/Scope.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Scope.js b/src/Scope.js
index a3e128b6..daafabb0 100644
--- a/src/Scope.js
+++ b/src/Scope.js
@@ -116,7 +116,7 @@ Scope.prototype = {
},
compile: function(exp) {
- if (isFunction(exp)) return exp;
+ if (isFunction(exp)) return bind(this.state, exp);
var expFn = Scope.expressionCache[exp], self = this;
if (!expFn) {
var parser = new Parser(exp);