Jakobo/inject — Issue #18: Asynchronous Module Definition Support (Transport/C)
Author: Jakobo
Created: 2011-11-15 21:45:28+00:00
State: open

The AMD specification enables the loading of CommonJS Compliant modules using an asynchronous transport mechanism.

https://github.com/amdjs/amdjs-api/wiki/AMD

The interface is defined as:

```
define(id?, dependencies?, factory);
```

With the following criteria:
* **id** is optional, and can specify a name of the module ID for lookup such as during later `require()` calls
* **dependencies** is optional, and is an array of modules to load for this item. They should be standard require format, with a preference for http://. We'll likely resolve these like any other module
* **factory** is required, and is...
* a callback that will be executed, the exports object should be mutated in the function body
* an object, which is assigned to module.exports