mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-16 12:08:43 +08:00
@@ -184,6 +184,10 @@ function Browser(window, document, $log, $sniffer) {
|
||||
|
||||
function fireUrlChange() {
|
||||
newLocation = null;
|
||||
checkUrlChange();
|
||||
}
|
||||
|
||||
function checkUrlChange() {
|
||||
if (lastBrowserUrl == self.url()) return;
|
||||
|
||||
lastBrowserUrl = self.url();
|
||||
@@ -239,7 +243,7 @@ function Browser(window, document, $log, $sniffer) {
|
||||
* Needs to be exported to be able to check for changes that have been done in sync,
|
||||
* as hashchange/popstate events fire in async.
|
||||
*/
|
||||
self.$$checkUrlChange = fireUrlChange;
|
||||
self.$$checkUrlChange = checkUrlChange;
|
||||
|
||||
//////////////////////////////////////////////////////////////
|
||||
// Misc API
|
||||
|
||||
Reference in New Issue
Block a user