diff options
Diffstat (limited to 'src/directives.js')
| -rw-r--r-- | src/directives.js | 3 |
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); } }); |
