1
1
#!/usr/bin/env node
2
2
/**
3
- * @license r.js 2.1.14 Copyright (c) 2010-2014, The Dojo Foundation All Rights Reserved.
3
+ * @license r.js 2.1.15 Copyright (c) 2010-2014, The Dojo Foundation All Rights Reserved.
4
4
* Available via the MIT or new BSD license.
5
5
* see: http://github.com/jrburke/requirejs for details
6
6
*/
@@ -21,7 +21,7 @@ var requirejs, require, define, xpcUtil;
21
21
(function (console, args, readFileFunc) {
22
22
var fileName, env, fs, vm, path, exec, rhinoContext, dir, nodeRequire,
23
23
nodeDefine, exists, reqMain, loadedOptimizedLib, existsForNode, Cc, Ci,
24
- version = '2.1.14 ',
24
+ version = '2.1.15 ',
25
25
jsSuffixRegExp = /\.js$/,
26
26
commandOption = '',
27
27
useLibLoaded = {},
@@ -239,7 +239,7 @@ var requirejs, require, define, xpcUtil;
239
239
}
240
240
241
241
/** vim: et:ts=4:sw=4:sts=4
242
- * @license RequireJS 2.1.14 Copyright (c) 2010-2014, The Dojo Foundation All Rights Reserved.
242
+ * @license RequireJS 2.1.15 Copyright (c) 2010-2014, The Dojo Foundation All Rights Reserved.
243
243
* Available via the MIT or new BSD license.
244
244
* see: http://github.com/jrburke/requirejs for details
245
245
*/
@@ -252,7 +252,7 @@ var requirejs, require, define, xpcUtil;
252
252
(function (global) {
253
253
var req, s, head, baseElement, dataMain, src,
254
254
interactiveScript, currentlyAddingScript, mainScript, subPath,
255
- version = '2.1.14 ',
255
+ version = '2.1.15 ',
256
256
commentRegExp = /(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/mg,
257
257
cjsRequireRegExp = /[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,
258
258
jsSuffixRegExp = /\.js$/,
@@ -22950,7 +22950,7 @@ define('parse', ['./esprimaAdapter', 'lang'], function (esprima, lang) {
22950
22950
//Like traverse, but skips if branches that would not be processed
22951
22951
//after has application that results in tests of true or false boolean
22952
22952
//literal values.
22953
- var key, child, result, i, params, param,
22953
+ var key, child, result, i, params, param, tempObject,
22954
22954
hasHas = options && options.has;
22955
22955
22956
22956
fnExpScope = fnExpScope || emptyScope;
@@ -22980,23 +22980,23 @@ define('parse', ['./esprimaAdapter', 'lang'], function (esprima, lang) {
22980
22980
22981
22981
//Build up a "scope" object that informs nested recurse calls if
22982
22982
//the define call references an identifier that is likely a UMD
22983
- //wrapped function expresion argument.
22983
+ //wrapped function expression argument.
22984
22984
if (object.type === 'ExpressionStatement' && object.expression &&
22985
22985
object.expression.type === 'CallExpression' && object.expression.callee &&
22986
22986
object.expression.callee.type === 'FunctionExpression') {
22987
- object = object.expression.callee;
22988
-
22989
- if (object.params && object.params.length) {
22990
- params = object.params;
22991
- fnExpScope = mixin({}, fnExpScope, true);
22992
- for (i = 0; i < params.length; i++) {
22993
- param = params[i];
22994
- if (param.type === 'Identifier') {
22995
- fnExpScope[param.name] = true;
22996
- }
22987
+ tempObject = object.expression.callee;
22988
+
22989
+ if (tempObject.params && tempObject.params.length) {
22990
+ params = tempObject.params;
22991
+ fnExpScope = mixin({}, fnExpScope, true);
22992
+ for (i = 0; i < params.length; i++) {
22993
+ param = params[i];
22994
+ if (param.type === 'Identifier') {
22995
+ fnExpScope[param.name] = true;
22997
22996
}
22998
22997
}
22999
22998
}
22999
+ }
23000
23000
23001
23001
for (key in object) {
23002
23002
if (object.hasOwnProperty(key)) {
@@ -23015,12 +23015,12 @@ define('parse', ['./esprimaAdapter', 'lang'], function (esprima, lang) {
23015
23015
//wrapping.
23016
23016
if (typeof result === 'string') {
23017
23017
if (hasProp(fnExpScope, result)) {
23018
- //Just a plain return, parsing can continue past this
23019
- //point .
23020
- return;
23018
+ //result still in scope, keep jumping out indicating the
23019
+ //identifier still in use .
23020
+ return result ;
23021
23021
}
23022
23022
23023
- return result ;
23023
+ return;
23024
23024
}
23025
23025
}
23026
23026
};
@@ -26540,7 +26540,8 @@ define('build', function (require) {
26540
26540
"excludeShallow": true,
26541
26541
"insertRequire": true,
26542
26542
"stubModules": true,
26543
- "deps": true
26543
+ "deps": true,
26544
+ "mainConfigFile": true
26544
26545
};
26545
26546
26546
26547
for (i = 0; i < ary.length; i++) {
0 commit comments