aboutsummaryrefslogtreecommitdiffstats
path: root/src/Scope.js
diff options
context:
space:
mode:
authorMisko Hevery2010-05-30 15:45:33 -0700
committerMisko Hevery2010-05-30 15:45:33 -0700
commit0e88e35e5c76420c48a487718558d33e452ea1eb (patch)
tree5cd96c2922f35bdf574e60de0836b7e44ea4eeb8 /src/Scope.js
parentfa0702bad1714965c1f236fb195b8a4f7ce7bbc6 (diff)
downloadangular.js-0e88e35e5c76420c48a487718558d33e452ea1eb.tar.bz2
remove the uneeded call to createScope when evaluating expressions
Diffstat (limited to 'src/Scope.js')
-rw-r--r--src/Scope.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Scope.js b/src/Scope.js
index fe0b6ce3..70869b3b 100644
--- a/src/Scope.js
+++ b/src/Scope.js
@@ -60,11 +60,12 @@ function expressionCompile(exp){
// TODO(remove this hack)
function parserNewScopeAdapter(fn) {
return function(){
+ var self = this;
return fn({
- state: this,
+ state: self,
scope: {
- set: this.$set,
- get: this.$get
+ set: function(key, value){ return setter(self, key, value);},
+ get: function(key) { return getter(self, key); }
}
});
};