|
@@ -121,7 +121,7 @@ function amdefine(module, requireFn) {
|
|
|
|
|
|
//Wait for next tick to call back the require call.
|
|
//Wait for next tick to call back the require call.
|
|
process.nextTick(function () {
|
|
process.nextTick(function () {
|
|
- callback.apply(null, deps);
|
|
|
|
|
|
+ if (callback) callback.apply(null, deps);
|
|
});
|
|
});
|
|
}
|
|
}
|
|
}
|
|
}
|