You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@shindig.apache.org by li...@apache.org on 2010/09/07 21:41:57 UTC
svn commit: r993499 -
/shindig/trunk/features/src/main/javascript/features/shindig.uri.ext/util.js
Author: lindner
Date: Tue Sep 7 19:41:57 2010
New Revision: 993499
URL: http://svn.apache.org/viewvc?rev=993499&view=rev
Log:
SHINDIG-1422 | Patch from Javier Pedemonte | shindig.uri.ext's resolve() doesn't work on IE 6/7
Modified:
shindig/trunk/features/src/main/javascript/features/shindig.uri.ext/util.js
Modified: shindig/trunk/features/src/main/javascript/features/shindig.uri.ext/util.js
URL: http://svn.apache.org/viewvc/shindig/trunk/features/src/main/javascript/features/shindig.uri.ext/util.js?rev=993499&r1=993498&r2=993499&view=diff
==============================================================================
--- shindig/trunk/features/src/main/javascript/features/shindig.uri.ext/util.js (original)
+++ shindig/trunk/features/src/main/javascript/features/shindig.uri.ext/util.js Tue Sep 7 19:41:57 2010
@@ -52,11 +52,11 @@ shindig.uri = (function() {
self.setAuthority(base.getAuthority());
}
var selfPath = self.getPath();
- if (selfPath == '' || selfPath[0] != '/') {
+ if (selfPath == '' || selfPath.charAt(0) != '/') {
var basePath = base.getPath();
var lastSlash = basePath.lastIndexOf('/');
if (lastSlash != -1) {
- basePath = basePath(0, lastSlash + 1);
+ basePath = basePath.substring(0, lastSlash + 1);
}
self.setPath(base.getPath() + selfPath);
}