feat($location): name the watch function to ease debugging

This commit is contained in:
Igor Minar 2011-11-29 19:36:43 -05:00
parent b00da987a9
commit 3d0ce0ebe9

View file

@ -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() {