Permalink
Browse files

inadvertent use of location.hash

  • Loading branch information...
johnbender committed Sep 5, 2012
1 parent 3d6c0f3 commit e517b16bb5c0611ee2d6295baf67bfc0dc96d030
Showing with 1 addition and 1 deletion.
  1. +1 −1 js/jquery.mobile.navigation.js
@@ -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;
},

0 comments on commit e517b16

Please sign in to comment.