componentjs/builder2.js — pull request #78 by jamesreggio (2014-09-08 22:36:41+00:00)
Title: Use canonical name as ID for AMD define()

This PR updates the UMD boilerplate to provide an ID argument to the AMD `define` function, per [this specification](https://github.com/amdjs/amdjs-api/wiki/AMD#define-function-).

This change is in the interest of making the `--standalone` function of `component-build` actually produce a component which can be used in a standalone manner—that is to say, a component that is identified by its name with the AMD loader.