[Dojo-checkins] r899 - src/uri

dojo-checkins at dojotoolkit.org dojo-checkins at dojotoolkit.org
Mon Jul 18 09:23:18 PDT 2005


Author: alex
Date: Mon Jul 18 09:23:17 2005
New Revision: 899

Modified:
   src/uri/Uri.js
Log:
now it doesn't throw even stranger errors ;-)


Modified: src/uri/Uri.js
==============================================================================
--- src/uri/Uri.js	(original)
+++ src/uri/Uri.js	Mon Jul 18 09:23:17 2005
@@ -34,10 +34,10 @@
 			{
 				if (relobj.fragment != null){ uriobj.fragment = relobj.fragment; }
 				relobj = uriobj;
-			}else if (relobj["scheme"]){
+			}else if(typeof relobj["scheme"] != "undefined"){
 				relobj.scheme = uriobj.scheme;
 			
-				if (relobj["authority"]) {
+				if(typeof relobj["authority"] != "undefined"){
 					relobj.authority = uriobj.authority;
 					
 					if (relobj.path.charAt(0) != "/") {


More information about the Dojo-checkins mailing list