1
1
#!/usr/bin/env node
2
2
/**
3
- * @license r.js 2.1.12 Copyright (c) 2010-2014, The Dojo Foundation All Rights Reserved.
3
+ * @license r.js 2.1.13 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.12 ',
24
+ version = '2.1.13 ',
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.12 Copyright (c) 2010-2014, The Dojo Foundation All Rights Reserved.
242
+ * @license RequireJS 2.1.13 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.12 ',
255
+ version = '2.1.13 ',
256
256
commentRegExp = /(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/mg,
257
257
cjsRequireRegExp = /[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,
258
258
jsSuffixRegExp = /\.js$/,
@@ -484,12 +484,7 @@ var requirejs, require, define, xpcUtil;
484
484
// still work when converted to a path, even though
485
485
// as an ID it is less than ideal. In larger point
486
486
// releases, may be better to just kick out an error.
487
- // Also, want to keep IDs that start with 'a/../', so
488
- // that the 'a' part can be used for ID-to-path mapping
489
- // configs like paths/packages config. This is done
490
- // for legacy code expectations, since previous approach
491
- // in this method used that logic.
492
- if (i < 2 || ary[i - 1] === '..') {
487
+ if (i === 0 || (i == 1 && ary[2] === '..') || ary[i - 1] === '..') {
493
488
continue;
494
489
} else if (i > 0) {
495
490
ary.splice(i - 1, 2);
0 commit comments