wallet-core/thirdparty/systemjs/test/tests/amd-dynamic-require.js

19 lines
298 B
JavaScript
Raw Normal View History

define(['require'], function(require) {
var cb, module;
require('./amd-dynamic.js', function(_module) {
module = _module;
if (cb)
cb(module);
});
return {
onCallback: function(_cb) {
if (module)
_cb(module);
else
cb = _cb;
}
};
});