Created
February 10, 2016 13:29
-
-
Save mildfuzz/2d1d306dbf4b475c99ca to your computer and use it in GitHub Desktop.
Cross Module Loading Platform Module Definition
This file contains hidden or 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
| (function(){ | |
| "use strict"; | |
| var module = function(){ | |
| //my module code}; | |
| }; | |
| if(typeof define !== 'undefined' && typeof define.amd !== 'undefined' ){ | |
| define(function(){ | |
| return module; | |
| }); | |
| } else if(typeof module !== 'undefined' && typeof module.exports !== 'undefined' ){ | |
| module.exports = module; | |
| } else { | |
| return module; | |
| } | |
| }()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment