secretrobotron/requirement — pull request #5 by jrburke (2011-12-16 01:37:05+00:00)
Title: README additions and improved build output.

* README additions
* Pass `this` to immediately invoked functions and use `root` internal to those functions to refer
to the global space, instead of using window.
* Added an call to the end of wrap.end to register as an AMD module if the built file is used in a loader.
* Twiddled some things in the build so that js/loader.js is not used in the output, and the output is dist/{loader}.js
* As a consequence of that, removed the has() usage in js/loader.
* moved js/module.js to js/submodule.js since 'module' in an AMD context is a special word, and did not want to cause confusion, even though it worked as before.

The build works for me if I do a `node r.js -o build.js` in the project's build directory, and if I modify the index.html to use that dist/ build it worked.