Created
February 14, 2013 15:00
-
-
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/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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