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/ngRepeat.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/ngRepeat.js')
| -rw-r--r-- | src/ng/directive/ngRepeat.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ng/directive/ngRepeat.js b/src/ng/directive/ngRepeat.js index a47b7abc..021845fa 100644 --- a/src/ng/directive/ngRepeat.js +++ b/src/ng/directive/ngRepeat.js @@ -89,7 +89,7 @@ var ngRepeatDirective = ngDirective({ // We expect this to be a rare case. var lastOrder = new HashQueueMap(); var indexValues = []; - scope.$watch(function(scope){ + scope.$watch(function ngRepeatWatch(scope){ var index, length, collection = scope.$eval(rhs), collectionLength = size(collection, true), @@ -131,7 +131,7 @@ var ngRepeatDirective = ngDirective({ } else { last = undefined; } - + if (last) { // if we have already seen this object, then we need to reuse the // associated scope/element @@ -187,7 +187,7 @@ var ngRepeatDirective = ngDirective({ for (i = 0, l = indexValues.length - length; i < l; i++) { indexValues.pop(); } - + //shrink children for (key in lastOrder) { if (lastOrder.hasOwnProperty(key)) { |
