Changeset 7590 for branches/0.4/buildscripts
- Timestamp:
- 03/14/07 12:42:45 (22 months ago)
- Files:
-
- 1 modified
-
branches/0.4/buildscripts/buildUtilXd.js (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