documentcloud/underscore — pull request #431 by jrburke (2012-01-11 19:09:07+00:00)
Title: Register as AMD module, but still export a global

This is in response to [this commit](https://github.com/documentcloud/underscore/commit/0d4b1247c45083c695cab4242c084a97aa600221), which came out of reports of issues using underscore in an AMD environment.

From what I have heard, the issues are mainly when trying to also use backbone. Those issues could be resolved by merging [this pull request](https://github.com/documentcloud/backbone/pull/710).

But in general, if underscore prefers to not get reports of issues with an AMD loader, this pull request also exports a global even if define() is available. This is the same approach that jQuery uses. Ideally this would not be needed, but modular development is just getting bootstrapped on the web, and during this bootstrap period, this approach avoids issues.

If pull requests are not the way you prefer to have this conversation, please let me know what avenue works best.