Permalink
Browse files

Navigation: Save the initial hash key in urlHistory

  • Loading branch information...
gabrielschulhof committed Dec 12, 2012
1 parent 2f25782 commit ff24eb6c1bd3ffd841b2ac9f6e9a4b5fe14d625b
Showing with 2 additions and 5 deletions.
  1. +0 −5 js/jquery.mobile.navigation.js
  2. +2 −0 js/navigation/navigate.js
@@ -1196,11 +1196,6 @@ define( [
transition: (urlHistory.getLast() || {}).transition || transition
});
// TODO we can set this earlier and avoid checking it every time we run the hashchange
if ( 0 === urlHistory.stack.length ) {
urlHistory.initialDst = to;
}
// special case for dialogs
if ( urlHistory.stack.length > 1 && to.indexOf( dialogHashKey ) > -1 && urlHistory.initialDst !== to ) {
@@ -269,6 +269,8 @@ define([
// Each has a url and optional transition, title, and pageUrl (which represents the file path, in cases where URL is obscured, such as dialogs)
stack: [],
initialDst: $.mobile.path.parseLocation().hash,
//maintain an index number for the active page in the stack
activeIndex: 0,

0 comments on commit ff24eb6

Please sign in to comment.