Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

avoid string concat where possible

  • Loading branch information...
commit d0bb999f7f840824304c0a9bd65e2051784ef2b2 1 parent 125260b
John Bender johnbender authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 js/jquery.mobile.navigation.js
5 js/jquery.mobile.navigation.js
View
@@ -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.