Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Commit

Permalink
[navigation] Do not reset the base tag if, during loadPage we find th…
Browse files Browse the repository at this point in the history
…at the page is already in the DOM, or that we have been prevented from continuing because the default for the "pagebeforeload" event has been prevented.
  • Loading branch information
Gabriel Schulhof committed Sep 6, 2012
1 parent e517b16 commit 0212315
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions js/jquery.mobile.navigation.js
Expand Up @@ -724,11 +724,6 @@ define( [
}
}

// Reset base to the default document base.
if ( base ) {
base.reset();
}

// If the page we are interested in is already in the DOM,
// and the caller did not indicate that we should force a
// reload of the file, we are done. Otherwise, track the
Expand Down Expand Up @@ -772,6 +767,11 @@ define( [
};
}

// Reset base to the default document base.
if ( base ) {
base.reset();
}

if ( !( $.mobile.allowCrossDomainPages || path.isSameDomain( documentUrl, absUrl ) ) ) {
deferred.reject( absUrl, options );
} else {
Expand Down

0 comments on commit 0212315

Please sign in to comment.