You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by hl...@apache.org on 2011/06/21 23:40:16 UTC
svn commit: r1138202 -
/tapestry/tapestry5/branches/maint-5-2/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry.js
Author: hlship
Date: Tue Jun 21 21:40:15 2011
New Revision: 1138202
URL: http://svn.apache.org/viewvc?rev=1138202&view=rev
Log:
TAP5-1538: Optimize client-side URL rebuilding in IE 7
Modified:
tapestry/tapestry5/branches/maint-5-2/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry.js
Modified: tapestry/tapestry5/branches/maint-5-2/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/branches/maint-5-2/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry.js?rev=1138202&r1=1138201&r2=1138202&view=diff
==============================================================================
--- tapestry/tapestry5/branches/maint-5-2/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry.js (original)
+++ tapestry/tapestry5/branches/maint-5-2/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry.js Tue Jun 21 21:40:15 2011
@@ -1,4 +1,4 @@
-/* Copyright 2007, 2008, 2009, 2010 The Apache Software Foundation
+/* Copyright 2007, 2008, 2009, 2010, 2011 The Apache Software Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -515,8 +515,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) {