Bones/node_modules/systemjs/test/tests/amd-dynamic-require.js
SOUTHERNCO\x2mjbyrn 7efe7605b8 Template Upload
2017-05-17 13:45:25 -04:00

19 lines
298 B
JavaScript

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;
}
};
});