diff options
Diffstat (limited to 'src/service/compiler.js')
| -rw-r--r-- | src/service/compiler.js | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/src/service/compiler.js b/src/service/compiler.js index 6185c909..c663baac 100644 --- a/src/service/compiler.js +++ b/src/service/compiler.js @@ -33,7 +33,7 @@                   // watch the 'compile' expression for changes                  return scope.$eval(attrs.compile);                }, -              function(scope, value) { +              function(value) {                  // when the 'compile' expression changes                  // assign it into the current DOM                  element.html(value); @@ -631,7 +631,7 @@ function $CompileProvider($provide) {                  bindings = parent.data('$binding') || [];              bindings.push(interpolateFn);              parent.data('$binding', bindings).addClass('ng-binding'); -            scope.$watch(interpolateFn, function(scope, value) { +            scope.$watch(interpolateFn, function(value) {                node[0].nodeValue = value;              });            }) @@ -656,7 +656,7 @@ function $CompileProvider($provide) {          compile: function(element, attr) {            if (interpolateFn) {              return function(scope, element, attr) { -              scope.$watch(interpolateFn, function(scope, value){ +              scope.$watch(interpolateFn, function(value) {                  attr.$set(name, value);                });              }; | 
