Skip to content

Commit 3001709

Browse files
author
Chuck Dumont
authored
Merge pull request #166 from pshendry/master
Fix define-without-callback support
2 parents 3ce314d + ac617b7 commit 3001709

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

runtime/DojoAMDMainTemplate.runtime.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,10 @@ module.exports = {
132132
errors.push({mid: mid, error: e});
133133
}
134134
});
135-
if (callback && errors.length === 0) {
136-
callback.apply(this, modules);
135+
if (errors.length === 0) {
136+
if (callback) {
137+
callback.apply(this, modules);
138+
}
137139
} else {
138140
var error = new Error("findModules");
139141
error.src = "dojo-webpack-plugin";

0 commit comments

Comments
 (0)