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

Commit

Permalink
Fix for issue 1207 - Can't revisit the same page after visitin it, hi…
Browse files Browse the repository at this point in the history
…tting the back button and clicking its link

- This was a regression introduced by 20dce2c. Added check for undefined newActiveIndex so we can tell the difference between the URL not being found, and a zero index.
  • Loading branch information
jblas committed Mar 8, 2011
1 parent c85a9c3 commit ea77d03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/jquery.mobile.navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@
});

// save new page index
urlHistory.activeIndex = newActiveIndex ? newActiveIndex : urlHistory.activeIndex;
urlHistory.activeIndex = newActiveIndex !== undefined ? newActiveIndex : urlHistory.activeIndex;

//if it's a back, use reverse animation
if( back ){
Expand Down

0 comments on commit ea77d03

Please sign in to comment.