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/select.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/select.js')
| -rw-r--r-- | src/ng/directive/select.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ng/directive/select.js b/src/ng/directive/select.js index 77b2f46d..0c94ddcb 100644 --- a/src/ng/directive/select.js +++ b/src/ng/directive/select.js @@ -269,7 +269,7 @@ var selectDirective = ['$compile', '$parse', function($compile, $parse) { // we have to do it on each watch since ngModel watches reference, but // we need to work of an array, so we need to see if anything was inserted/removed - scope.$watch(function() { + scope.$watch(function selectMultipleWatch() { if (!equals(lastView, ctrl.$viewValue)) { lastView = copy(ctrl.$viewValue); ctrl.$render(); @@ -544,7 +544,7 @@ var optionDirective = ['$interpolate', function($interpolate) { } if (interpolateFn) { - scope.$watch(interpolateFn, function(newVal, oldVal) { + scope.$watch(interpolateFn, function interpolateWatchAction(newVal, oldVal) { attr.$set('value', newVal); if (newVal !== oldVal) selectCtrl.removeOption(oldVal); selectCtrl.addOption(newVal); |
