aboutsummaryrefslogtreecommitdiffstats
path: root/src/directives.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/directives.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/directives.js')
-rw-r--r--src/directives.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/directives.js b/src/directives.js
index a3575d62..0a3e10ed 100644
--- a/src/directives.js
+++ b/src/directives.js
@@ -198,10 +198,9 @@ angularDirective("ng-watch", function(expression, element){
return function(element){
var self = this;
new Parser(expression).watch()({
- scope:{get: self.$get, set: self.$set},
addListener:function(watch, exp){
self.$watch(watch, function(){
- return exp({scope:{get: self.$get, set: self.$set}, state:self});
+ return exp(self);
}, element);
}
});