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

Commit

Permalink
inadvertent use of location.hash
Browse files Browse the repository at this point in the history
  • Loading branch information
johnbender committed Sep 5, 2012
1 parent aa74be8 commit 51d82b0
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 @@ -53,7 +53,7 @@ define( [
// browsers that auto decode it. All references to location.href should be
// replaced with a call to this method so that it can be dealt with properly here
getLocation: function( url ) {
var uri = url ? $.mobile.path.parseUrl( url ) : location;
var uri = url ? this.parseUrl( url ) : this.parseUrl( location.href );

return uri.protocol + "//" + uri.host + uri.pathname + uri.search + uri.hash;
},
Expand Down

0 comments on commit 51d82b0

Please sign in to comment.