diff options
| author | Shyam Seshadri | 2012-07-06 15:23:40 +0530 | 
|---|---|---|
| committer | Misko Hevery | 2012-09-06 16:06:25 -0700 | 
| commit | ca30fce28ca13284bfa1c926e810ed75cdcde499 (patch) | |
| tree | e7e2a41e740312981fab5f1226f8bd1d98b07e62 /src/ng/directive/ngBind.js | |
| parent | b6e4a71166c7f00f4140fd7ea8f0cd81b4487a3f (diff) | |
| download | angular.js-ca30fce28ca13284bfa1c926e810ed75cdcde499.tar.bz2 | |
fix(*): name all anonymous watch functions in Angular
This will allow us to see function names in Batarang and debugger.
Closes #1119
Diffstat (limited to 'src/ng/directive/ngBind.js')
| -rw-r--r-- | src/ng/directive/ngBind.js | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/src/ng/directive/ngBind.js b/src/ng/directive/ngBind.js index 70f25370..0c99f27d 100644 --- a/src/ng/directive/ngBind.js +++ b/src/ng/directive/ngBind.js @@ -49,7 +49,7 @@   */  var ngBindDirective = ngDirective(function(scope, element, attr) {    element.addClass('ng-binding').data('$binding', attr.ngBind); -  scope.$watch(attr.ngBind, function(value) { +  scope.$watch(attr.ngBind, function ngBindWatchAction(value) {      element.text(value == undefined ? '' : value);    });  }); @@ -132,7 +132,7 @@ var ngBindTemplateDirective = ['$interpolate', function($interpolate) {  var ngBindHtmlUnsafeDirective = [function() {    return function(scope, element, attr) {      element.addClass('ng-binding').data('$binding', attr.ngBindHtmlUnsafe); -    scope.$watch(attr.ngBindHtmlUnsafe, function(value) { +    scope.$watch(attr.ngBindHtmlUnsafe, function ngBindHtmlUnsafeWatchAction(value) {        element.html(value || '');      });    }; | 
