Skip to content

Commit

Permalink
2.1.15
Browse files Browse the repository at this point in the history
  • Loading branch information
jrburke committed Sep 8, 2014
1 parent 3be79c9 commit d034273
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 24 deletions.
43 changes: 22 additions & 21 deletions requirejs/bin/r.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env node
/**
* @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.
* see: http://github.com/jrburke/requirejs for details
*/
Expand All @@ -21,7 +21,7 @@ var requirejs, require, define, xpcUtil;
(function (console, args, readFileFunc) {
var fileName, env, fs, vm, path, exec, rhinoContext, dir, nodeRequire,
nodeDefine, exists, reqMain, loadedOptimizedLib, existsForNode, Cc, Ci,
version = '2.1.14',
version = '2.1.15',
jsSuffixRegExp = /\.js$/,
commandOption = '',
useLibLoaded = {},
Expand Down Expand Up @@ -239,7 +239,7 @@ var requirejs, require, define, xpcUtil;
}

/** 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.
* see: http://github.com/jrburke/requirejs for details
*/
Expand All @@ -252,7 +252,7 @@ var requirejs, require, define, xpcUtil;
(function (global) {
var req, s, head, baseElement, dataMain, src,
interactiveScript, currentlyAddingScript, mainScript, subPath,
version = '2.1.14',
version = '2.1.15',
commentRegExp = /(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/mg,
cjsRequireRegExp = /[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,
jsSuffixRegExp = /\.js$/,
Expand Down Expand Up @@ -22950,7 +22950,7 @@ define('parse', ['./esprimaAdapter', 'lang'], function (esprima, lang) {
//Like traverse, but skips if branches that would not be processed
//after has application that results in tests of true or false boolean
//literal values.
var key, child, result, i, params, param,
var key, child, result, i, params, param, tempObject,
hasHas = options && options.has;

fnExpScope = fnExpScope || emptyScope;
Expand Down Expand Up @@ -22980,23 +22980,23 @@ define('parse', ['./esprimaAdapter', 'lang'], function (esprima, lang) {

//Build up a "scope" object that informs nested recurse calls if
//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 &&
object.expression.type === 'CallExpression' && object.expression.callee &&
object.expression.callee.type === 'FunctionExpression') {
object = object.expression.callee;

if (object.params && object.params.length) {
params = object.params;
fnExpScope = mixin({}, fnExpScope, true);
for (i = 0; i < params.length; i++) {
param = params[i];
if (param.type === 'Identifier') {
fnExpScope[param.name] = true;
}
tempObject = object.expression.callee;

if (tempObject.params && tempObject.params.length) {
params = tempObject.params;
fnExpScope = mixin({}, fnExpScope, true);
for (i = 0; i < params.length; i++) {
param = params[i];
if (param.type === 'Identifier') {
fnExpScope[param.name] = true;
}
}
}
}

for (key in object) {
if (object.hasOwnProperty(key)) {
Expand All @@ -23015,12 +23015,12 @@ define('parse', ['./esprimaAdapter', 'lang'], function (esprima, lang) {
//wrapping.
if (typeof result === 'string') {
if (hasProp(fnExpScope, result)) {
//Just a plain return, parsing can continue past this
//point.
return;
//result still in scope, keep jumping out indicating the
//identifier still in use.
return result;
}

return result;
return;
}
}
};
Expand Down Expand Up @@ -26540,7 +26540,8 @@ define('build', function (require) {
"excludeShallow": true,
"insertRequire": true,
"stubModules": true,
"deps": true
"deps": true,
"mainConfigFile": true
};

for (i = 0; i < ary.length; i++) {
Expand Down
2 changes: 1 addition & 1 deletion requirejs/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "requirejs",
"description": "Node adapter for RequireJS, for loading AMD modules. Includes RequireJS optimizer",
"version": "2.1.14",
"version": "2.1.15",
"homepage": "http://github.com/jrburke/r.js",
"author": "James Burke <[email protected]> (http://github.com/jrburke)",
"licenses": [
Expand Down
4 changes: 2 additions & 2 deletions requirejs/require.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** 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.
* see: http://github.com/jrburke/requirejs for details
*/
Expand All @@ -12,7 +12,7 @@ var requirejs, require, define;
(function (global) {
var req, s, head, baseElement, dataMain, src,
interactiveScript, currentlyAddingScript, mainScript, subPath,
version = '2.1.14',
version = '2.1.15',
commentRegExp = /(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/mg,
cjsRequireRegExp = /[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,
jsSuffixRegExp = /\.js$/,
Expand Down

0 comments on commit d034273

Please sign in to comment.