aboutsummaryrefslogtreecommitdiffstats
path: root/src/Scope.js
diff options
context:
space:
mode:
authorMisko Hevery2010-05-30 16:11:00 -0700
committerMisko Hevery2010-05-30 16:11:00 -0700
commit0d87208553af7a9ad6c6c1c73bd3a4105062eafa (patch)
treea35264f1332aefbfdd48b8ef1e81a73242ea5686 /src/Scope.js
parent0e88e35e5c76420c48a487718558d33e452ea1eb (diff)
downloadangular.js-0d87208553af7a9ad6c6c1c73bd3a4105062eafa.tar.bz2
remove the relience of parser an special self object, now passing generic self
Diffstat (limited to 'src/Scope.js')
-rw-r--r--src/Scope.js9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/Scope.js b/src/Scope.js
index 70869b3b..ac07c7a4 100644
--- a/src/Scope.js
+++ b/src/Scope.js
@@ -60,14 +60,7 @@ function expressionCompile(exp){
// TODO(remove this hack)
function parserNewScopeAdapter(fn) {
return function(){
- var self = this;
- return fn({
- state: self,
- scope: {
- set: function(key, value){ return setter(self, key, value);},
- get: function(key) { return getter(self, key); }
- }
- });
+ return fn(this);
};
}