Skip to content

Commit 900b560

Browse files
committed
requirejs 2.1.13
1 parent 94d846a commit 900b560

File tree

2 files changed

+8
-18
lines changed

2 files changed

+8
-18
lines changed

tools/r.js

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @license r.js 2.1.12 Copyright (c) 2010-2014, The Dojo Foundation All Rights Reserved.
2+
* @license r.js 2.1.13 Copyright (c) 2010-2014, 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
*/
@@ -20,7 +20,7 @@ var requirejs, require, define, xpcUtil;
2020
(function (console, args, readFileFunc) {
2121
var fileName, env, fs, vm, path, exec, rhinoContext, dir, nodeRequire,
2222
nodeDefine, exists, reqMain, loadedOptimizedLib, existsForNode, Cc, Ci,
23-
version = '2.1.12',
23+
version = '2.1.13',
2424
jsSuffixRegExp = /\.js$/,
2525
commandOption = '',
2626
useLibLoaded = {},
@@ -238,7 +238,7 @@ var requirejs, require, define, xpcUtil;
238238
}
239239

240240
/** vim: et:ts=4:sw=4:sts=4
241-
* @license RequireJS 2.1.12 Copyright (c) 2010-2014, The Dojo Foundation All Rights Reserved.
241+
* @license RequireJS 2.1.13 Copyright (c) 2010-2014, The Dojo Foundation All Rights Reserved.
242242
* Available via the MIT or new BSD license.
243243
* see: http://github.com/jrburke/requirejs for details
244244
*/
@@ -251,7 +251,7 @@ var requirejs, require, define, xpcUtil;
251251
(function (global) {
252252
var req, s, head, baseElement, dataMain, src,
253253
interactiveScript, currentlyAddingScript, mainScript, subPath,
254-
version = '2.1.12',
254+
version = '2.1.13',
255255
commentRegExp = /(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/mg,
256256
cjsRequireRegExp = /[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,
257257
jsSuffixRegExp = /\.js$/,
@@ -483,12 +483,7 @@ var requirejs, require, define, xpcUtil;
483483
// still work when converted to a path, even though
484484
// as an ID it is less than ideal. In larger point
485485
// releases, may be better to just kick out an error.
486-
// Also, want to keep IDs that start with 'a/../', so
487-
// that the 'a' part can be used for ID-to-path mapping
488-
// configs like paths/packages config. This is done
489-
// for legacy code expectations, since previous approach
490-
// in this method used that logic.
491-
if (i < 2 || ary[i - 1] === '..') {
486+
if (i === 0 || (i == 1 && ary[2] === '..') || ary[i - 1] === '..') {
492487
continue;
493488
} else if (i > 0) {
494489
ary.splice(i - 1, 2);

www/js/lib/require.js

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/** vim: et:ts=4:sw=4:sts=4
2-
* @license RequireJS 2.1.12 Copyright (c) 2010-2014, The Dojo Foundation All Rights Reserved.
2+
* @license RequireJS 2.1.13 Copyright (c) 2010-2014, 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
*/
@@ -12,7 +12,7 @@ var requirejs, require, define;
1212
(function (global) {
1313
var req, s, head, baseElement, dataMain, src,
1414
interactiveScript, currentlyAddingScript, mainScript, subPath,
15-
version = '2.1.12',
15+
version = '2.1.13',
1616
commentRegExp = /(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/mg,
1717
cjsRequireRegExp = /[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,
1818
jsSuffixRegExp = /\.js$/,
@@ -244,12 +244,7 @@ var requirejs, require, define;
244244
// still work when converted to a path, even though
245245
// as an ID it is less than ideal. In larger point
246246
// releases, may be better to just kick out an error.
247-
// Also, want to keep IDs that start with 'a/../', so
248-
// that the 'a' part can be used for ID-to-path mapping
249-
// configs like paths/packages config. This is done
250-
// for legacy code expectations, since previous approach
251-
// in this method used that logic.
252-
if (i < 2 || ary[i - 1] === '..') {
247+
if (i === 0 || (i == 1 && ary[2] === '..') || ary[i - 1] === '..') {
253248
continue;
254249
} else if (i > 0) {
255250
ary.splice(i - 1, 2);

0 commit comments

Comments
 (0)