Sha256: 0fbaa873738f040e77a26dc46d5e5a3f67b883e71261ae1ae43ea88afbe305f8

Contents?: true

Size: 1.35 KB

Versions: 11

Compression:

Stored size: 1.35 KB

Contents

;(function(){

	/*
	dojo, dijit, and dojox must always be the first three, and in that order.
	djConfig.scopeMap = [
		["dojo", "fojo"],
		["dijit", "fijit"],
		["dojox", "fojox"]
	
	]
	*/

	/**Build will replace this comment with a scoped djConfig **/

	//The null below can be relaced by a build-time value used instead of djConfig.scopeMap.
	var sMap = null;

	//See if new scopes need to be defined.
	if((sMap || (typeof djConfig != "undefined" && djConfig.scopeMap)) && (typeof window != "undefined")){
		var scopeDef = "", scopePrefix = "", scopeSuffix = "", scopeMap = {}, scopeMapRev = {};
		sMap = sMap || djConfig.scopeMap;
		for(var i = 0; i < sMap.length; i++){
			//Make local variables, then global variables that use the locals.
			var newScope = sMap[i];
			scopeDef += "var " + newScope[0] + " = {}; " + newScope[1] + " = " + newScope[0] + ";" + newScope[1] + "._scopeName = '" + newScope[1] + "';";
			scopePrefix += (i == 0 ? "" : ",") + newScope[0];
			scopeSuffix += (i == 0 ? "" : ",") + newScope[1];
			scopeMap[newScope[0]] = newScope[1];
			scopeMapRev[newScope[1]] = newScope[0];
		}

		eval(scopeDef + "dojo._scopeArgs = [" + scopeSuffix + "];");

		dojo._scopePrefixArgs = scopePrefix;
		dojo._scopePrefix = "(function(" + scopePrefix + "){";
		dojo._scopeSuffix = "})(" + scopeSuffix + ")";
		dojo._scopeMap = scopeMap;
		dojo._scopeMapRev = scopeMapRev;
	}

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
dojo_src-1.5.0 dojo/util/buildscripts/jslib/dojoGuardStart.jsfrag
dojo_src-1.4.3 dojo/util/buildscripts/jslib/dojoGuardStart.jsfrag
dojo_src-1.4.102 dojo/util/buildscripts/jslib/dojoGuardStart.jsfrag
dojo-pkg-1.132.0 data/dojo-release-1.3.2-src/util/buildscripts/jslib/dojoGuardStart.jsfrag
dojo-pkg-1.111.0 data/dojo-release-1.1.1-src/util/buildscripts/jslib/dojoGuardStart.jsfrag
dojo-pkg-1.120.0 data/dojo-release-1.2.0-src/util/buildscripts/jslib/dojoGuardStart.jsfrag
dojo-pkg-1.121.0 data/dojo-release-1.2.1-src/util/buildscripts/jslib/dojoGuardStart.jsfrag
dojo-pkg-1.122.0 data/dojo-release-1.2.2-src/util/buildscripts/jslib/dojoGuardStart.jsfrag
dojo-pkg-1.123.0 data/dojo-release-1.2.3-src/util/buildscripts/jslib/dojoGuardStart.jsfrag
dojo-pkg-1.130.0 data/dojo-release-1.3.0-src/util/buildscripts/jslib/dojoGuardStart.jsfrag
dojo-pkg-1.131.0 data/dojo-release-1.3.1-src/util/buildscripts/jslib/dojoGuardStart.jsfrag