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

Commit

Permalink
avoid string concat where possible
Browse files Browse the repository at this point in the history
  • Loading branch information
johnbender committed Aug 7, 2012
1 parent 9431d8a commit 651f20e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions js/jquery.mobile.navigation.js
Expand Up @@ -65,10 +65,11 @@ define( [
}

if( encodedUserPass ){
encodedUserPass = encodedUserPass + "@";
return uri.protocol + "//" + encodedUserPass + "@" +
uri.host + uri.pathname + uri.search + uri.hash;
}

return uri.protocol + "//" + encodedUserPass + uri.host + uri.pathname + uri.search + uri.hash;
return uri.href;
},

parseLocation: function() {
Expand Down

0 comments on commit 651f20e

Please sign in to comment.