Browse Source

Updated r.js to 2.1.15.

pull/156/merge
Simon Eisenmann 11 years ago
parent
commit
c2e204fb0b
  1. 29
      build/r.js

29
build/r.js

@ -1,5 +1,5 @@
/** /**
* @license r.js 2.1.14 Copyright (c) 2010-2014, The Dojo Foundation All Rights Reserved. * @license r.js 2.1.15 Copyright (c) 2010-2014, The Dojo Foundation All Rights Reserved.
* Available via the MIT or new BSD license. * Available via the MIT or new BSD license.
* see: http://github.com/jrburke/requirejs for details * see: http://github.com/jrburke/requirejs for details
*/ */
@ -20,7 +20,7 @@ var requirejs, require, define, xpcUtil;
(function (console, args, readFileFunc) { (function (console, args, readFileFunc) {
var fileName, env, fs, vm, path, exec, rhinoContext, dir, nodeRequire, var fileName, env, fs, vm, path, exec, rhinoContext, dir, nodeRequire,
nodeDefine, exists, reqMain, loadedOptimizedLib, existsForNode, Cc, Ci, nodeDefine, exists, reqMain, loadedOptimizedLib, existsForNode, Cc, Ci,
version = '2.1.14', version = '2.1.15',
jsSuffixRegExp = /\.js$/, jsSuffixRegExp = /\.js$/,
commandOption = '', commandOption = '',
useLibLoaded = {}, useLibLoaded = {},
@ -238,7 +238,7 @@ var requirejs, require, define, xpcUtil;
} }
/** vim: et:ts=4:sw=4:sts=4 /** vim: et:ts=4:sw=4:sts=4
* @license RequireJS 2.1.14 Copyright (c) 2010-2014, The Dojo Foundation All Rights Reserved. * @license RequireJS 2.1.15 Copyright (c) 2010-2014, The Dojo Foundation All Rights Reserved.
* Available via the MIT or new BSD license. * Available via the MIT or new BSD license.
* see: http://github.com/jrburke/requirejs for details * see: http://github.com/jrburke/requirejs for details
*/ */
@ -251,7 +251,7 @@ var requirejs, require, define, xpcUtil;
(function (global) { (function (global) {
var req, s, head, baseElement, dataMain, src, var req, s, head, baseElement, dataMain, src,
interactiveScript, currentlyAddingScript, mainScript, subPath, interactiveScript, currentlyAddingScript, mainScript, subPath,
version = '2.1.14', version = '2.1.15',
commentRegExp = /(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/mg, commentRegExp = /(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/mg,
cjsRequireRegExp = /[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g, cjsRequireRegExp = /[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,
jsSuffixRegExp = /\.js$/, jsSuffixRegExp = /\.js$/,
@ -22949,7 +22949,7 @@ define('parse', ['./esprimaAdapter', 'lang'], function (esprima, lang) {
//Like traverse, but skips if branches that would not be processed //Like traverse, but skips if branches that would not be processed
//after has application that results in tests of true or false boolean //after has application that results in tests of true or false boolean
//literal values. //literal values.
var key, child, result, i, params, param, var key, child, result, i, params, param, tempObject,
hasHas = options && options.has; hasHas = options && options.has;
fnExpScope = fnExpScope || emptyScope; fnExpScope = fnExpScope || emptyScope;
@ -22979,14 +22979,14 @@ define('parse', ['./esprimaAdapter', 'lang'], function (esprima, lang) {
//Build up a "scope" object that informs nested recurse calls if //Build up a "scope" object that informs nested recurse calls if
//the define call references an identifier that is likely a UMD //the define call references an identifier that is likely a UMD
//wrapped function expresion argument. //wrapped function expression argument.
if (object.type === 'ExpressionStatement' && object.expression && if (object.type === 'ExpressionStatement' && object.expression &&
object.expression.type === 'CallExpression' && object.expression.callee && object.expression.type === 'CallExpression' && object.expression.callee &&
object.expression.callee.type === 'FunctionExpression') { object.expression.callee.type === 'FunctionExpression') {
object = object.expression.callee; tempObject = object.expression.callee;
if (object.params && object.params.length) { if (tempObject.params && tempObject.params.length) {
params = object.params; params = tempObject.params;
fnExpScope = mixin({}, fnExpScope, true); fnExpScope = mixin({}, fnExpScope, true);
for (i = 0; i < params.length; i++) { for (i = 0; i < params.length; i++) {
param = params[i]; param = params[i];
@ -23014,12 +23014,12 @@ define('parse', ['./esprimaAdapter', 'lang'], function (esprima, lang) {
//wrapping. //wrapping.
if (typeof result === 'string') { if (typeof result === 'string') {
if (hasProp(fnExpScope, result)) { if (hasProp(fnExpScope, result)) {
//Just a plain return, parsing can continue past this //result still in scope, keep jumping out indicating the
//point. //identifier still in use.
return; return result;
} }
return result; return;
} }
} }
}; };
@ -26539,7 +26539,8 @@ define('build', function (require) {
"excludeShallow": true, "excludeShallow": true,
"insertRequire": true, "insertRequire": true,
"stubModules": true, "stubModules": true,
"deps": true "deps": true,
"mainConfigFile": true
}; };
for (i = 0; i < ary.length; i++) { for (i = 0; i < ary.length; i++) {

Loading…
Cancel
Save