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/ngStyle.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/ngStyle.js')
| -rw-r--r-- | src/ng/directive/ngStyle.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ng/directive/ngStyle.js b/src/ng/directive/ngStyle.js index 5b0a3728..a1c2b699 100644 --- a/src/ng/directive/ngStyle.js +++ b/src/ng/directive/ngStyle.js @@ -38,7 +38,7 @@ </example> */ var ngStyleDirective = ngDirective(function(scope, element, attr) { - scope.$watch(attr.ngStyle, function(newStyles, oldStyles) { + scope.$watch(attr.ngStyle, function ngStyleWatchAction(newStyles, oldStyles) { if (oldStyles && (newStyles !== oldStyles)) { forEach(oldStyles, function(val, style) { element.css(style, '');}); } |
