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

Commit 651f20e

Browse files
committed
avoid string concat where possible
1 parent 9431d8a commit 651f20e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

js/jquery.mobile.navigation.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,11 @@ define( [
6565
}
6666

6767
if( encodedUserPass ){
68-
encodedUserPass = encodedUserPass + "@";
68+
return uri.protocol + "//" + encodedUserPass + "@" +
69+
uri.host + uri.pathname + uri.search + uri.hash;
6970
}
7071

71-
return uri.protocol + "//" + encodedUserPass + uri.host + uri.pathname + uri.search + uri.hash;
72+
return uri.href;
7273
},
7374

7475
parseLocation: function() {

0 commit comments

Comments
 (0)