1
1
/**
2
- * @license r.js 2.1.21 Copyright (c) 2010-2015, The Dojo Foundation All Rights Reserved.
2
+ * @license r.js 2.1.22 Copyright (c) 2010-2015, 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.21 ',
23
+ version = '2.1.22 ',
24
24
jsSuffixRegExp = /\.js$/,
25
25
commandOption = '',
26
26
useLibLoaded = {},
@@ -249,7 +249,7 @@ var requirejs, require, define, xpcUtil;
249
249
}
250
250
251
251
/** vim: et:ts=4:sw=4:sts=4
252
- * @license RequireJS 2.1.21 Copyright (c) 2010-2015, The Dojo Foundation All Rights Reserved.
252
+ * @license RequireJS 2.1.22 Copyright (c) 2010-2015, The Dojo Foundation All Rights Reserved.
253
253
* Available via the MIT or new BSD license.
254
254
* see: http://github.com/jrburke/requirejs for details
255
255
*/
@@ -262,7 +262,7 @@ var requirejs, require, define, xpcUtil;
262
262
(function (global) {
263
263
var req, s, head, baseElement, dataMain, src,
264
264
interactiveScript, currentlyAddingScript, mainScript, subPath,
265
- version = '2.1.21 ',
265
+ version = '2.1.22 ',
266
266
commentRegExp = /(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/mg,
267
267
cjsRequireRegExp = /[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,
268
268
jsSuffixRegExp = /\.js$/,
@@ -1166,7 +1166,11 @@ var requirejs, require, define, xpcUtil;
1166
1166
defined[id] = exports;
1167
1167
1168
1168
if (req.onResourceLoad) {
1169
- req.onResourceLoad(context, this.map, this.depMaps);
1169
+ var resLoadMaps = [];
1170
+ each(this.depMaps, function (depMap) {
1171
+ resLoadMaps.push(depMap.normalizedMap || depMap);
1172
+ });
1173
+ req.onResourceLoad(context, this.map, resLoadMaps);
1170
1174
}
1171
1175
}
1172
1176
@@ -1225,6 +1229,7 @@ var requirejs, require, define, xpcUtil;
1225
1229
this.map.parentMap);
1226
1230
on(normalizedMap,
1227
1231
'defined', bind(this, function (value) {
1232
+ this.map.normalizedMap = normalizedMap;
1228
1233
this.init([], function () { return value; }, null, {
1229
1234
enabled: true,
1230
1235
ignore: true
@@ -1961,7 +1966,7 @@ var requirejs, require, define, xpcUtil;
1961
1966
* Callback for script errors.
1962
1967
*/
1963
1968
onScriptError: function (evt) {
1964
- data = getScriptData(evt);
1969
+ var data = getScriptData(evt);
1965
1970
if (!hasPathFallback(data.id)) {
1966
1971
var parents = [];
1967
1972
eachProp(registry, function(value, key) {
0 commit comments