Skip to content
This repository
Browse code

avoid string concat where possible

  • Loading branch information...
commit d0bb999f7f840824304c0a9bd65e2051784ef2b2 1 parent 125260b
John Bender authored August 07, 2012

Showing 1 changed file with 3 additions and 2 deletions. Show diff stats Hide diff stats

  1. 5  js/jquery.mobile.navigation.js
5  js/jquery.mobile.navigation.js
@@ -65,10 +65,11 @@ define( [
65 65
 				}
66 66
 
67 67
 				if( encodedUserPass ){
68  
-					encodedUserPass = encodedUserPass + "@";
  68
+					return uri.protocol + "//" + encodedUserPass + "@" +
  69
+						uri.host + uri.pathname + uri.search + uri.hash;
69 70
 				}
70 71
 
71  
-				return uri.protocol + "//" + encodedUserPass + uri.host + uri.pathname + uri.search + uri.hash;
  72
+				return uri.href;
72 73
 			},
73 74
 
74 75
 			parseLocation: function() {

0 notes on commit d0bb999

Please sign in to comment.
Something went wrong with that request. Please try again.