Skip to content

Instantly share code, notes, and snippets.

@jfsiii
Forked from unscriptable/another-way.js
Created May 13, 2011 03:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jfsiii/969893 to your computer and use it in GitHub Desktop.
Save jfsiii/969893 to your computer and use it in GitHub Desktop.
AMD-compatible CommonJS Module/1.1 that can also be loaded in a script tag
(function (define) {
define(function (exports) {
function Color(){}
return Color;
});
}(
// provide define if it's not available
this.define || (function (global, moduleId) {
return function (defFunc) {
global[moduleId] = defFunc({});
}
})(this, 'Color')
));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment