diff options
| author | Shyam Seshadri | 2012-07-06 15:23:40 +0530 |
|---|---|---|
| committer | Misko Hevery | 2012-09-11 16:39:46 -0700 |
| commit | 2c6aa4c300073ef27fcce4c112646985d81a4fe4 (patch) | |
| tree | 7f481ff84b5b46ea8c3e0058ba710a61ac22effe /src/ng/directive/ngRepeat.js | |
| parent | f7a8f17fc72f603de11ca89170bc8d1cad4dae6a (diff) | |
| download | angular.js-2c6aa4c300073ef27fcce4c112646985d81a4fe4.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)) { |
