Permalink
Browse files

[navigation] Do not reset the base tag if, during loadPage we find th…

…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...
1 parent e517b16 commit 021231507270332279187a12482f2f1c3b5dda17 @gabrielschulhof gabrielschulhof committed Sep 4, 2012
Showing with 5 additions and 5 deletions.
  1. +5 −5 js/jquery.mobile.navigation.js
@@ -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
@@ -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 {

0 comments on commit 0212315

Please sign in to comment.