Changeset 7590
- Timestamp:
- 03/14/07 12:42:45 (22 months ago)
- Location:
- branches/0.4
- Files:
-
- 3 modified
-
buildscripts/buildUtilXd.js (modified) (1 diff)
-
src/loader_xd.js (modified) (1 diff)
-
tests/i18n/test_strings.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/0.4/buildscripts/buildUtilXd.js
r7587 r7590 113 113 114 114 //Final XD file contents. 115 var provideString = 'dojo.provide("' + moduleName + '.nls.' + (localeName ? localeName + '.' : '') + bundleName + '");'; 116 117 fileContents = provideString 115 fileContents = 'dojo.provide("' + moduleName + '.nls.' + (localeName ? localeName + '.' : '') + bundleName + '");' 118 116 + 'dojo.hostenv.xdLoadFlattenedBundle("' + moduleName + '", "' + bundleName 119 117 + '", "' + localeName + '", ' + fileContents + ');'; 120 118 121 //Now make a proper xd.js file out of the content, but 122 //only include the dojo.provide statement. We'll leave the bundle contents outside of the 123 //xd wrapper. 124 var bundleContents = buildUtilXd.makeXdContents(provideString, baseRelativePath, prefixes); 125 126 //Just inline the real contents right in the file. Its ok if bundles are evaluated right 127 //away since they don't have dependencies. 128 bundleContents += fileContents; 129 130 return bundleContents; 119 //Now make a proper xd.js file out of the content. 120 return buildUtilXd.makeXdContents(fileContents, baseRelativePath, prefixes); 131 121 } 132 122 //END makeXdBundleContents function -
branches/0.4/src/loader_xd.js
r7581 r7590 119 119 this.xdOrderedReqs.push(module); 120 120 121 //Add to waiting packages. 122 //Only add it if not a non-xdomain i18n resource bundle. 123 if(currentIsXDomain && uri.indexOf("/nls/") == -1){ 121 //Add to waiting packages if it is an xdomain resource. 122 if(currentIsXDomain){ 124 123 this.xdInFlight[module] = true; 125 } 126 127 //Increment inFlightCount128 //This will stop the modulesLoaded from firing all the way.129 this.inFlightCount++;130 124 125 //Increment inFlightCount 126 //This will stop the modulesLoaded from firing all the way. 127 this.inFlightCount++; 128 } 129 131 130 //Start timer 132 131 if(!this.xdTimer){ -
branches/0.4/tests/i18n/test_strings.html
r7572 r7590 6 6 djConfig = { 7 7 isDebug: true, 8 baseScriptUri: "../../" ,//for xdomain testing.8 baseScriptUri: "../../" //for xdomain testing. 9 9 }; 10 10 </script>