Skip to content

Instantly share code, notes, and snippets.

@nick-jonas
Created February 14, 2013 15:00
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 nick-jonas/4953353 to your computer and use it in GitHub Desktop.
Save nick-jonas/4953353 to your computer and use it in GitHub Desktop.
Conditional AMD Support via this blog post: http://dailyjs.com/2011/12/22/framework/
var myModule = {
awesome: 'not really'
};
if (typeof define === 'function' && define.amd) {
define('myModule', [], function() {
return myModule;
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment