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);
0 commit comments