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