From 0d87208553af7a9ad6c6c1c73bd3a4105062eafa Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Sun, 30 May 2010 16:11:00 -0700 Subject: remove the relience of parser an special self object, now passing generic self --- src/directives.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/directives.js') 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); } }); -- cgit v1.2.3