rem:  if(this._isXDomain && module){ 
add:   if(this._isXDomain && module && module != "dojo.i18n"){ 
context: dojo._loadUri = function(/*String*/uri, /*Function?*/cb, /*boolean*/currentIsXDomain, /*String?*/module){	//summary: Internal xd loader function. Overrides loadUri() from loader.js.	//		xd loading requires slightly different behavior from loadPath().	//description: Wanted to override getText(), but it is used by	//		the widget code in too many, synchronous ways right now.	if(this._loadedUrls[uri]){		return 1; //Boolean	}	//Add the module (resource) to the list of modules.	//Only do this work if we have a modlue name. Otherwise, 	//it is a non-xd i18n bundle, which can load immediately and does not 	//need to be tracked. 	if(this._isXDomain && module){ 		//If this is a __package__.js file, then this must be		//a package.* request (since xdomain can only work with the first		//path in a package search list. However, .* module names are not		//passed to this function, so do an adjustment here.		if(uri.indexOf("__package__") != -1){			module += ".*";		}		this._xdOrderedReqs.push(module);		//Add to waiting resources if it is an xdomain resource.		//Don't add non-xdomain i18n bundles, those get evaled immediately.		if(currentIsXDomain || uri.indexOf("/nls/") == -1){			this._xdInFlight[module] = true;			//Increment inFlightCount			//This will stop the modulesLoaded from firing all the way.			this._inFlightCount++;		}		//Start timer		if(!this._xdTimer){			this._xdTimer = setInterval("dojo._xdWatchInFlight();", 100);		}		this._xdStartTime = (new Date()).getTime();	}	if (currentIsXDomain){		//Fix name to be a .xd.fileextension name.		var lastIndex = uri.lastIndexOf('.');		if(lastIndex <= 0){			lastIndex = uri.length - 1;		}		var xdUri = uri.substring(0, lastIndex) + ".xd";		if(lastIndex != uri.length - 1){			xdUri += uri.substring(lastIndex, uri.length);		}		//Add to script src		var element = document.createElement("script");		element.type = "text/javascript";		element.src = xdUri;		if(!this.headElement){			this._headElement = document.getElementsByTagName("head")[0];			//Head element may not exist, particularly in html			//html 4 or tag soup cases where the page does not			//have a head tag in it. Use html element, since that will exist.			//Seems to be an issue mostly with Opera 9 and to lesser extent Safari 2			if(!this._headElement){				this._headElement = document.getElementsByTagName("html")[0];			}		}		this._headElement.appendChild(element);	}else{		var contents = this._getText(uri, null, true);		if(contents == null){ return 0; /*boolean*/}				//If this is not xdomain, or if loading a i18n resource bundle, then send it down		//the normal eval/callback path.		if(this._isXDomain && uri.indexOf("/nls/") == -1){			var res = this._xdCreateResource(contents, module, uri);			dojo.eval(res);		}else{			if(cb){ contents = '('+contents+')'; }			var value = dojo.eval(contents);			if(cb){				cb(value);			}		}	}	//These steps are done in the non-xd loader version of this function.	//Maintain these steps to fit in with the existing system.	this._loadedUrls[uri] = true;	this._loadedUrls.push(uri);	return true; //Boolean}
meta: 4497	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/4497/35ff8e0ff4a9f0e78ad87cd0d9366b8f794e4ba6/loader_xd.js/buggy/_base/_loader/loader_xd.js