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

Commit

Permalink
[navigation] directHashChange: normalize comparison terms with decode…
Browse files Browse the repository at this point in the history
…URIComponent()

Conflicts:

	js/jquery.mobile.navigation.js
  • Loading branch information
Gabriel Schulhof committed Jul 14, 2012
1 parent 845e93c commit 96165dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/jquery.mobile.navigation.js
Expand Up @@ -329,7 +329,7 @@ define( [
$.each( urlHistory.stack, function( i, historyEntry ) {

//if the url is in the stack, it's a forward or a back
if( opts.currentUrl === historyEntry.url ) {
if ( decodeURIComponent( opts.currentUrl ) === decodeURIComponent( historyEntry.url ) ) {
//define back and forward by whether url is older or newer than current page
back = i < urlHistory.activeIndex;
forward = !back;
Expand Down

0 comments on commit 96165dc

Please sign in to comment.