Skip to content

Commit 175c99a

Browse files
committed
snapshot
1 parent 257b523 commit 175c99a

File tree

1 file changed

+27
-18
lines changed

1 file changed

+27
-18
lines changed

dist/r.js

Lines changed: 27 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @license r.js 1.0.5+ Wed, 01 Feb 2012 01:32:55 GMT Copyright (c) 2010-2012, The Dojo Foundation All Rights Reserved.
2+
* @license r.js 1.0.5+ Mon, 13 Feb 2012 05:05:17 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
*/
@@ -20,7 +20,7 @@ var requirejs, require, define;
2020

2121
var fileName, env, fs, vm, path, exec, rhinoContext, dir, nodeRequire,
2222
nodeDefine, exists, reqMain, loadedOptimizedLib,
23-
version = '1.0.5+ Wed, 01 Feb 2012 01:32:55 GMT',
23+
version = '1.0.5+ Mon, 13 Feb 2012 05:05:17 GMT',
2424
jsSuffixRegExp = /\.js$/,
2525
commandOption = '',
2626
useLibLoaded = {},
@@ -8512,14 +8512,16 @@ define('commonJs', ['env!env/file', 'uglifyjs/index'], function (file, uglify) {
85128512
* see: http://github.com/jrburke/requirejs for details
85138513
*/
85148514

8515-
/*jslint regexp: false, plusplus: false, nomen: false, strict: false */
8516-
/*global define: false, require: false */
8515+
/*jslint plusplus: true, nomen: true */
8516+
/*global define, require */
85178517

85188518

85198519
define('build', [ 'lang', 'logger', 'env!env/file', 'parse', 'optimize', 'pragma',
85208520
'env!env/load', 'requirePatch'],
85218521
function (lang, logger, file, parse, optimize, pragma,
85228522
load, requirePatch) {
8523+
'use strict';
8524+
85238525
var build, buildBaseConfig,
85248526
endsWithSemiColonRegExp = /;\s*$/;
85258527

@@ -9040,32 +9042,25 @@ function (lang, logger, file, parse, optimize, pragma,
90409042
* to the absFilePath passed in.
90419043
*/
90429044
build.makeAbsConfig = function (config, absFilePath) {
9043-
var props, prop, i, originalBaseUrl;
9045+
var props, prop, i;
90449046

90459047
props = ["appDir", "dir", "baseUrl"];
90469048
for (i = 0; (prop = props[i]); i++) {
90479049
if (config[prop]) {
90489050
//Add abspath if necessary, make sure these paths end in
90499051
//slashes
90509052
if (prop === "baseUrl") {
9051-
originalBaseUrl = config.baseUrl;
9053+
config.originalBaseUrl = config.baseUrl;
90529054
if (config.appDir) {
90539055
//If baseUrl with an appDir, the baseUrl is relative to
90549056
//the appDir, *not* the absFilePath. appDir and dir are
90559057
//made absolute before baseUrl, so this will work.
9056-
config.baseUrl = build.makeAbsPath(originalBaseUrl, config.appDir);
9057-
//Set up dir output baseUrl.
9058-
config.dirBaseUrl = build.makeAbsPath(originalBaseUrl, config.dir);
9058+
config.baseUrl = build.makeAbsPath(config.originalBaseUrl, config.appDir);
90599059
} else {
90609060
//The dir output baseUrl is same as regular baseUrl, both
90619061
//relative to the absFilePath.
90629062
config.baseUrl = build.makeAbsPath(config[prop], absFilePath);
9063-
config.dirBaseUrl = config.dir || config.baseUrl;
90649063
}
9065-
9066-
//Make sure dirBaseUrl ends in a slash, since it is
9067-
//concatenated with other strings.
9068-
config.dirBaseUrl = endsWithSlash(config.dirBaseUrl);
90699064
} else {
90709065
config[prop] = build.makeAbsPath(config[prop], absFilePath);
90719066
}
@@ -9138,12 +9133,13 @@ function (lang, logger, file, parse, optimize, pragma,
91389133
var config = {}, buildFileContents, buildFileConfig, mainConfig,
91399134
mainConfigFile, prop, buildFile, absFilePath;
91409135

9141-
lang.mixin(config, buildBaseConfig);
9142-
lang.mixin(config, cfg, true);
9143-
91449136
//Make sure all paths are relative to current directory.
91459137
absFilePath = file.absPath('.');
9146-
build.makeAbsConfig(config, absFilePath);
9138+
build.makeAbsConfig(cfg, absFilePath);
9139+
build.makeAbsConfig(buildBaseConfig, absFilePath);
9140+
9141+
lang.mixin(config, buildBaseConfig);
9142+
lang.mixin(config, cfg, true);
91479143

91489144
if (config.buildFile) {
91499145
//A build file exists, load it to get more config.
@@ -9205,6 +9201,19 @@ function (lang, logger, file, parse, optimize, pragma,
92059201
//args should take precedence over build file values.
92069202
mixConfig(config, cfg);
92079203

9204+
9205+
//Set final output dir
9206+
if (config.hasOwnProperty("baseUrl")) {
9207+
if (config.appDir) {
9208+
config.dirBaseUrl = build.makeAbsPath(config.originalBaseUrl, config.dir);
9209+
} else {
9210+
config.dirBaseUrl = config.dir || config.baseUrl;
9211+
}
9212+
//Make sure dirBaseUrl ends in a slash, since it is
9213+
//concatenated with other strings.
9214+
config.dirBaseUrl = endsWithSlash(config.dirBaseUrl);
9215+
}
9216+
92089217
//Check for errors in config
92099218
if (config.cssIn && !config.out) {
92109219
throw new Error("ERROR: 'out' option missing.");

0 commit comments

Comments
 (0)