appendto/amplify — Issue #43: Expose amplify in AMD format
Author: zachleat
Created: 2012-01-04 01:12:27+00:00
State: open

Now that jQuery is exposing itself w/ define, I feel like this will catch on more.

The easiest implementation would be:

define('amplify', function()
{
return amplify;
});

But the most correct would be to not use a global variable at all if an AMD loader exists on the page (underscore.js does a good job of this, I believe).

This allows amplify to be loaded using RequireJS or equivalent.