1
1
/**
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.
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.12 ',
23
+ version = '2.1.13 ',
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.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.
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.12 ',
254
+ version = '2.1.13 ',
255
255
commentRegExp = /(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/mg,
256
256
cjsRequireRegExp = /[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,
257
257
jsSuffixRegExp = /\.js$/,
@@ -483,12 +483,7 @@ var requirejs, require, define, xpcUtil;
483
483
// still work when converted to a path, even though
484
484
// as an ID it is less than ideal. In larger point
485
485
// 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] === '..') {
492
487
continue;
493
488
} else if (i > 0) {
494
489
ary.splice(i - 1, 2);
0 commit comments