mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 07:40:22 +00:00
feat($location): name the watch function to ease debugging
This commit is contained in:
parent
b00da987a9
commit
3d0ce0ebe9
1 changed files with 1 additions and 1 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue