Skip to content

Commit 7ac7e9c

Browse files
committed
snapshot
1 parent 93cc4a3 commit 7ac7e9c

File tree

1 file changed

+26
-9
lines changed

1 file changed

+26
-9
lines changed

dist/r.js

Lines changed: 26 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @license r.js 2.1.1+ Fri, 16 Nov 2012 19:22:11 GMT Copyright (c) 2010-2012, The Dojo Foundation All Rights Reserved.
2+
* @license r.js 2.1.1+ Sat, 17 Nov 2012 00:42:08 GMT Copyright (c) 2010-2012, The Dojo Foundation All Rights Reserved.
33
* Available via the MIT or new BSD license.
44
* see: http://github.com/jrburke/requirejs for details
55
*/
@@ -21,7 +21,7 @@ var requirejs, require, define;
2121

2222
var fileName, env, fs, vm, path, exec, rhinoContext, dir, nodeRequire,
2323
nodeDefine, exists, reqMain, loadedOptimizedLib, existsForNode,
24-
version = '2.1.1+ Fri, 16 Nov 2012 19:22:11 GMT',
24+
version = '2.1.1+ Sat, 17 Nov 2012 00:42:08 GMT',
2525
jsSuffixRegExp = /\.js$/,
2626
commandOption = '',
2727
useLibLoaded = {},
@@ -15075,7 +15075,7 @@ define('build', function (require) {
1507515075
//JS optimizations.
1507615076
fileNames = file.getFilteredFileList(config.dir, /\.js$/, true);
1507715077
fileNames.forEach(function (fileName, i) {
15078-
var cfg, moduleIndex, override;
15078+
var cfg, override, moduleIndex;
1507915079

1508015080
//Generate the module name from the config.dir root.
1508115081
moduleName = fileName.replace(config.dir, '');
@@ -15094,16 +15094,23 @@ define('build', function (require) {
1509415094
fileContents = commonJs.convert(fileName, fileContents);
1509515095
}
1509615096

15097-
fileContents = build.toTransport(config.namespace,
15098-
null,
15099-
fileName,
15100-
fileContents);
15101-
1510215097
//If there is an override for a specific layer build module,
1510315098
//and this file is that module, mix in the override for use
1510415099
//by optimize.jsFile.
1510515100
moduleIndex = getOwn(config._buildPathToModuleIndex, fileName);
15106-
override = moduleIndex === 0 || moduleIndex > 0 ?
15101+
//Normalize, since getOwn could have returned undefined
15102+
moduleIndex = moduleIndex === 0 || moduleIndex > 0 ? moduleIndex : -1;
15103+
15104+
//Only do transport normalization if this is not a build layer
15105+
//and if normalizeDefines indicated all should be done.
15106+
if (moduleIndex === -1 && config.normalizeDefines === "all") {
15107+
fileContents = build.toTransport(config.namespace,
15108+
null,
15109+
fileName,
15110+
fileContents);
15111+
}
15112+
15113+
override = moduleIndex > -1 ?
1510715114
config.modules[moduleIndex].override : null;
1510815115
if (override) {
1510915116
cfg = build.createOverrideConfig(config, override);
@@ -15638,6 +15645,16 @@ define('build', function (require) {
1563815645
' pages.');
1563915646
}
1564015647

15648+
//Set up normalizeDefines. If not explicitly set, if optimize "none",
15649+
//set to "skip" otherwise set to "all".
15650+
if (!hasProp(config, 'normalizeDefines')) {
15651+
if (config.optimize === 'none') {
15652+
config.normalizeDefines = 'skip';
15653+
} else {
15654+
config.normalizeDefines = 'all';
15655+
}
15656+
}
15657+
1564115658
//Set file.fileExclusionRegExp if desired
1564215659
if (hasProp(config, 'fileExclusionRegExp')) {
1564315660
if (typeof config.fileExclusionRegExp === "string") {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy