Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

avoid string concat where possible

  • Loading branch information...
commit 651f20e88bd9b63cd313d171090a1c90a7f07ed1 1 parent 9431d8a
@johnbender johnbender authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 js/jquery.mobile.navigation.js
View
5 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() {
Please sign in to comment.
Something went wrong with that request. Please try again.