rem: dojo.hostenv.searchLocalePath(locale, false, function(loc){ var jsLoc = loc.replace('-', '_'); var translationPackage = bundlePackage + "." + jsLoc; var loaded = false; if(!dojo.hostenv.findModule(translationPackage)){  dojo.hostenv.startPackage(translationPackage); var module = [modpath]; if(loc != "ROOT"){module.push(loc);} module.push(bundleName); var filespec = module.join("/") + '.js'; loaded = dojo.hostenv.loadPath(filespec, null, function(hash){  var clazz = function(){}; clazz.prototype = parent; bundle[jsLoc] = new clazz(); for(var j in hash){ bundle[jsLoc][j] = hash[j]; } }); }else{ loaded = true; } if(loaded && bundle[jsLoc]){ parent = bundle[jsLoc]; }else{ bundle[jsLoc] = parent; } }); 
add: dojo.hostenv.searchLocalePath(tempLocale, availableFlatLocales, function(loc){ var jsLoc = loc.replace('-', '_'); var translationPackage = bundlePackage + "." + jsLoc; var loaded = false; if(!dojo.hostenv.findModule(translationPackage)){  dojo.hostenv.startPackage(translationPackage); var module = [modpath]; if(loc != "ROOT"){module.push(loc);} module.push(bundleName); var filespec = module.join("/") + '.js'; loaded = dojo.hostenv.loadPath(filespec, null, function(hash){  var clazz = function(){}; clazz.prototype = parent; bundle[jsLoc] = new clazz(); for(var j in hash){ bundle[jsLoc][j] = hash[j]; } }); }else{ loaded = true; } if(loaded && bundle[jsLoc]){ parent = bundle[jsLoc]; }else{ bundle[jsLoc] = parent; }  if(availableFlatLocales){   return true; } }); 
context: 	dojo.hostenv.searchLocalePath(locale, false, function(loc){		var jsLoc = loc.replace('-', '_');		var translationPackage = bundlePackage + "." + jsLoc;		var loaded = false;		if(!dojo.hostenv.findModule(translationPackage)){			// Mark loaded whether it's found or not, so that further load attempts will not be made			dojo.hostenv.startPackage(translationPackage);			var module = [modpath];			if(loc != "ROOT"){module.push(loc);}			module.push(bundleName);			var filespec = module.join("/") + '.js';			loaded = dojo.hostenv.loadPath(filespec, null, function(hash){				// Use singleton with prototype to point to parent bundle, then mix-in result from loadPath				var clazz = function(){};				clazz.prototype = parent;				bundle[jsLoc] = new clazz();				for(var j in hash){ bundle[jsLoc][j] = hash[j]; }			});		}else{			loaded = true;		}		if(loaded && bundle[jsLoc]){			parent = bundle[jsLoc];		}else{			bundle[jsLoc] = parent;		}	});
meta: 4707	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4707/50c3492c4c3c825dbd3401e134a19ed46799c456/dojo.js.uncompressed.js/buggy/www/resources/dojo-ajax/dojo.js.uncompressed.js