this.uri = uri.toString(); 
this.uri = uri.toString(); 
	this.Uri = function (/*dojo.uri.Uri||String...*/) {		// summary: Constructor to create an object representing a URI.		// description: 		//  Each argument is evaluated in order relative to the next until		//  a canonical uri is produced. To get an absolute Uri relative		//  to the current document use		//      new dojo.uri.Uri(document.baseURI, uri)		// TODO: support for IPv6, see RFC 2732		// resolve uri components relative to each other		var uri = arguments[0];		for (var i = 1; i < arguments.length; i++) {			if(!arguments[i]) { continue; }			// Safari doesn't support this.constructor so we have to be explicit			var relobj = new dojo.uri.Uri(arguments[i].toString());			var uriobj = new dojo.uri.Uri(uri.toString());			if ((relobj.path=="")&&(relobj.scheme==null)&&(relobj.authority==null)&&(relobj.query==null)) {				if (relobj.fragment != null) { uriobj.fragment = relobj.fragment; }				relobj = uriobj;			} else if (relobj.scheme == null) {				relobj.scheme = uriobj.scheme;				if (relobj.authority == null) {					relobj.authority = uriobj.authority;					if (relobj.path.charAt(0) != "/") {						var path = uriobj.path.substring(0,							uriobj.path.lastIndexOf("/") + 1) + relobj.path;						var segs = path.split("/");						for (var j = 0; j < segs.length; j++) {							if (segs[j] == ".") {								if (j == segs.length - 1) { segs[j] = ""; }								else { segs.splice(j, 1); j--; }							} else if (j > 0 && !(j == 1 && segs[0] == "") &&								segs[j] == ".." && segs[j-1] != "..") {								if (j == segs.length - 1) { segs.splice(j, 1); segs[j - 1] = ""; }								else { segs.splice(j - 1, 2); j -= 2; }							}						}						relobj.path = segs.join("/");					}				}			}			uri = "";			if (relobj.scheme != null) { uri += relobj.scheme + ":"; }			if (relobj.authority != null) { uri += "//" + relobj.authority; }			uri += relobj.path;			if (relobj.query != null) { uri += "?" + relobj.query; }			if (relobj.fragment != null) { uri += "#" + relobj.fragment; }		}		this.uri = uri.toString();		// break the uri into its main components		var regexp = "^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$";		var r = this.uri.match(new RegExp(regexp));		this.scheme = r[2] || (r[1] ? "" : null);		this.authority = r[4] || (r[3] ? "" : null);		this.path = r[5]; // can never be undefined		this.query = r[7] || (r[6] ? "" : null);		this.fragment  = r[9] || (r[8] ? "" : null);		if (this.authority != null) {			// server based naming authority			regexp = "^((([^:]+:)?([^@]+))@)?([^:]*)(:([0-9]+))?$";			r = this.authority.match(new RegExp(regexp));			this.user = r[3] || null;			this.password = r[4] || null;			this.host = r[5];			this.port = r[7] || null;		}		this.toString = function(){ return this.uri; }	}
6315	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6315/2f1d2cb699c9d9329e8b782b0463156e211cb0f6/struts_dojo.js.uncompressed.js/buggy/src/main/resources/org/apache/struts2/static/dojo/struts_dojo.js.uncompressed.js