Skip to content

Commit f5b2ead

Browse files
committed
snapshot
1 parent 10445fd commit f5b2ead

File tree

1 file changed

+29
-11
lines changed

1 file changed

+29
-11
lines changed

dist/r.js

Lines changed: 29 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @license r.js 2.1.1+ Tue, 20 Nov 2012 01:24:24 GMT Copyright (c) 2010-2012, The Dojo Foundation All Rights Reserved.
2+
* @license r.js 2.1.1+ Tue, 20 Nov 2012 03:36:45 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+ Tue, 20 Nov 2012 01:24:24 GMT',
24+
version = '2.1.1+ Tue, 20 Nov 2012 03:36:45 GMT',
2525
jsSuffixRegExp = /\.js$/,
2626
commandOption = '',
2727
useLibLoaded = {},
@@ -20533,13 +20533,12 @@ define('rhino/optimize', ['logger', 'env!env/file'], function (logger, file) {
2053320533
if (arguments.length >= 2) {
2053420534
accumulator = arguments[1];
2053520535
} else {
20536-
do {
20537-
if (i in this) {
20538-
accumulator = this[i++];
20539-
break;
20536+
if (length) {
20537+
while (!(i in this)) {
20538+
i++;
2054020539
}
20540+
accumulator = this[i++];
2054120541
}
20542-
while (true);
2054320542
}
2054420543

2054520544
for (; i < length; i++) {
@@ -20973,7 +20972,11 @@ function (lang, logger, envOptimize, file, parse,
2097320972
buildText += flat.importList.map(function(path){
2097420973
return path.replace(config.dir, "");
2097520974
}).join("\n");
20976-
return buildText +"\n";
20975+
20976+
return {
20977+
importList: flat.importList,
20978+
buildText: buildText +"\n"
20979+
};
2097720980
},
2097820981

2097920982
/**
@@ -20985,16 +20988,31 @@ function (lang, logger, envOptimize, file, parse,
2098520988
*/
2098620989
css: function (startDir, config) {
2098720990
var buildText = "",
20988-
i, fileName, fileList;
20991+
importList = [],
20992+
shouldRemove = config.dir && config.removeCombined,
20993+
i, fileName, result, fileList;
2098920994
if (config.optimizeCss.indexOf("standard") !== -1) {
2099020995
fileList = file.getFilteredFileList(startDir, /\.css$/, true);
2099120996
if (fileList) {
2099220997
for (i = 0; i < fileList.length; i++) {
2099320998
fileName = fileList[i];
2099420999
logger.trace("Optimizing (" + config.optimizeCss + ") CSS file: " + fileName);
20995-
buildText += optimize.cssFile(fileName, fileName, config);
21000+
result = optimize.cssFile(fileName, fileName, config);
21001+
buildText += result.buildText;
21002+
if (shouldRemove) {
21003+
result.importList.pop();
21004+
importList = importList.concat(result.importList);
21005+
}
2099621006
}
2099721007
}
21008+
21009+
if (shouldRemove) {
21010+
importList.forEach(function (path) {
21011+
if (file.exists(path)) {
21012+
file.deleteFile(path);
21013+
}
21014+
});
21015+
}
2099821016
}
2099921017
return buildText;
2100021018
},
@@ -22280,7 +22298,7 @@ define('build', function (require) {
2228022298

2228122299
//If just have one CSS file to optimize, do that here.
2228222300
if (config.cssIn) {
22283-
buildFileContents += optimize.cssFile(config.cssIn, config.out, config);
22301+
buildFileContents += optimize.cssFile(config.cssIn, config.out, config).buildText;
2228422302
}
2228522303

2228622304
if (typeof config.out === 'function') {

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