diff options
| author | Igor Minar | 2011-11-29 19:36:43 -0500 |
|---|---|---|
| committer | Igor Minar | 2011-11-30 14:49:36 -0500 |
| commit | 3d0ce0ebe9ce26f54ce0527ece7a7950bc2e8368 (patch) | |
| tree | df397ac7867219c7afa9012a2e31b681ea28c7a0 /src/service/location.js | |
| parent | b00da987a9e0e4378d8252add8e15ad2e508901d (diff) | |
| download | angular.js-3d0ce0ebe9ce26f54ce0527ece7a7950bc2e8368.tar.bz2 | |
feat($location): name the watch function to ease debugging
Diffstat (limited to 'src/service/location.js')
| -rw-r--r-- | src/service/location.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/service/location.js b/src/service/location.js index 00e9c054..735a592b 100644 --- a/src/service/location.js +++ b/src/service/location.js @@ -534,7 +534,7 @@ function $LocationProvider(){ // update browser var changeCounter = 0; - $rootScope.$watch(function() { + $rootScope.$watch(function $locationWatch() { if ($browser.url() != currentUrl.absUrl()) { changeCounter++; $rootScope.$evalAsync(function() { |
