You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by hl...@apache.org on 2011/06/02 19:32:17 UTC

svn commit: r1130674 - /tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry.js

Author: hlship
Date: Thu Jun  2 17:32:16 2011
New Revision: 1130674

URL: http://svn.apache.org/viewvc?rev=1130674&view=rev
Log:
TAP5-1538: Optimize client-side URL rebuilding in IE 7

Modified:
    tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry.js

Modified: tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry.js?rev=1130674&r1=1130673&r2=1130674&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry.js (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry.js Thu Jun  2 17:32:16 2011
@@ -522,8 +522,12 @@ var Tapestry = {
 			return path;
 		}
 
-		var l = window.location;
-		return l.protocol + "//" + l.host + path;
+		if (!Tapestry.buildUrl) {
+			var l = window.location;
+			Tapestry.buildUrl = l.protocol + "//" + l.host;
+		}
+
+		return Tapestry.buildUrl + path;
 	},
 
 	stripToLastSlash : function(URL) {