1
1
/**
2
- * @license r.js 2.0.1+ Tue, 12 Jun 2012 04:07:18 GMT Copyright (c) 2010-2012, The Dojo Foundation All Rights Reserved.
2
+ * @license r.js 2.0.1+ Tue, 12 Jun 2012 05:20:00 GMT Copyright (c) 2010-2012, 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;
20
20
21
21
var fileName, env, fs, vm, path, exec, rhinoContext, dir, nodeRequire,
22
22
nodeDefine, exists, reqMain, loadedOptimizedLib, existsForNode,
23
- version = '2.0.1+ Tue, 12 Jun 2012 04:07:18 GMT',
23
+ version = '2.0.1+ Tue, 12 Jun 2012 05:20:00 GMT',
24
24
jsSuffixRegExp = /\.js$/,
25
25
commandOption = '',
26
26
useLibLoaded = {},
@@ -1020,15 +1020,13 @@ var requirejs, require, define;
1020
1020
1021
1021
//If the manager is for a plugin managed resource,
1022
1022
//ask the plugin to load it now.
1023
- if (map.prefix) {
1024
- this.callPlugin();
1025
- } else if (this.shim) {
1023
+ if (this.shim) {
1026
1024
makeRequire(this, true)(this.shim.deps || [], bind(this, function () {
1027
- this.load();
1025
+ return map.prefix ? this.callPlugin() : this.load();
1028
1026
}));
1029
1027
} else {
1030
1028
//Regular dependency.
1031
- this.load();
1029
+ return map.prefix ? this.callPlugin() : this.load();
1032
1030
}
1033
1031
},
1034
1032
0 commit comments