Skip to content

Commit 1aaf514

Browse files
committed
snapshot for latest r.js
1 parent bda1a8c commit 1aaf514

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

dist/r.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
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.
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;
2020

2121
var fileName, env, fs, vm, path, exec, rhinoContext, dir, nodeRequire,
2222
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',
2424
jsSuffixRegExp = /\.js$/,
2525
commandOption = '',
2626
useLibLoaded = {},
@@ -1020,15 +1020,13 @@ var requirejs, require, define;
10201020

10211021
//If the manager is for a plugin managed resource,
10221022
//ask the plugin to load it now.
1023-
if (map.prefix) {
1024-
this.callPlugin();
1025-
} else if (this.shim) {
1023+
if (this.shim) {
10261024
makeRequire(this, true)(this.shim.deps || [], bind(this, function () {
1027-
this.load();
1025+
return map.prefix ? this.callPlugin() : this.load();
10281026
}));
10291027
} else {
10301028
//Regular dependency.
1031-
this.load();
1029+
return map.prefix ? this.callPlugin() : this.load();
10321030
}
10331031
},
10341032

require.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -914,15 +914,13 @@ var requirejs, require, define;
914914

915915
//If the manager is for a plugin managed resource,
916916
//ask the plugin to load it now.
917-
if (map.prefix) {
918-
this.callPlugin();
919-
} else if (this.shim) {
917+
if (this.shim) {
920918
makeRequire(this, true)(this.shim.deps || [], bind(this, function () {
921-
this.load();
919+
return map.prefix ? this.callPlugin() : this.load();
922920
}));
923921
} else {
924922
//Regular dependency.
925-
this.load();
923+
return map.prefix ? this.callPlugin() : this.load();
926924
}
927925
},
928926

0 commit comments

Comments
 (0)