fix($browser): handle async href on url change in <=IE9

Closes #9235
This commit is contained in:
Chris Chua
2014-09-23 18:00:37 -07:00
committed by Brian Ford
parent 029ac8cb80
commit fe7d9dedaa
2 changed files with 28 additions and 1 deletions

View File

@@ -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