mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-09 15:24:43 +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
|
// update browser
|
||||||
var changeCounter = 0;
|
var changeCounter = 0;
|
||||||
$rootScope.$watch(function() {
|
$rootScope.$watch(function $locationWatch() {
|
||||||
if ($browser.url() != currentUrl.absUrl()) {
|
if ($browser.url() != currentUrl.absUrl()) {
|
||||||
changeCounter++;
|
changeCounter++;
|
||||||
$rootScope.$evalAsync(function() {
|
$rootScope.$evalAsync(function() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue