Permalink
Browse files

avoid string concat where possible

  • Loading branch information...
johnbender committed Aug 7, 2012
1 parent 125260b commit d0bb999f7f840824304c0a9bd65e2051784ef2b2
Showing with 3 additions and 2 deletions.
  1. +3 −2 js/jquery.mobile.navigation.js
@@ -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() {

0 comments on commit d0bb999

Please sign in to comment.