rem: dojo.hostenv.packageLoaded = function(pkg){ 
add: dojo.hostenv.packageLoaded = function(/*Object*/pkg){   
context: dojo.hostenv.packageLoaded = function(pkg){	var deps = pkg.depends;	var requireList = null;	var requireAfterList = null;	var provideList = [];	if(deps && deps.length > 0){		var dep = null;		var insertHint = 0;		var attachedPackage = false;		for(var i = 0; i < deps.length; i++){			dep = deps[i];			//Look for specific dependency indicators.			if (dep[0] == "provide" || dep[0] == "hostenv.moduleLoaded"){				provideList.push(dep[1]);			}else{				if(!requireList){					requireList = [];				}				if(!requireAfterList){					requireAfterList = [];				}				var unpackedDeps = this.unpackXdDependency(dep);				if(unpackedDeps.requires){					requireList = requireList.concat(unpackedDeps.requires);				}				if(unpackedDeps.requiresAfter){					requireAfterList = requireAfterList.concat(unpackedDeps.requiresAfter);				}			}			//Call the dependency indicator to allow for the normal dojo setup.			//Only allow for one dot reference, for the hostenv.* type calls.			var depType = dep[0];			var objPath = depType.split(".");			if(objPath.length == 2){				dojo[objPath[0]][objPath[1]].apply(dojo[objPath[0]], dep.slice(1));			}else{				dojo[depType].apply(dojo, dep.slice(1));			}		}		//Save off the package contents for definition later.		var contentIndex = this.xdContents.push({content: pkg.definePackage, isDefined: false}) - 1;		//Add provide/requires to dependency map.		for(var i = 0; i < provideList.length; i++){			this.xdDepMap[provideList[i]] = { requires: requireList, requiresAfter: requireAfterList, contentIndex: contentIndex };		}		//Now update the inflight status for any provided packages in this loaded package.		//Do this at the very end (in a *separate* for loop) to avoid shutting down the 		//inflight timer check too soon.		for(var i = 0; i < provideList.length; i++){			this.xdInFlight[provideList[i]] = false;		}	}}
meta: 4707	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4707/50c3492c4c3c825dbd3401e134a19ed46799c456/loader_xd.js/clean/www/resources/dojo-ajax/src/loader_xd.js