Last active
December 28, 2015 12:39
-
-
Save grifdail/7501616 to your computer and use it in GitHub Desktop.
multi exportCompatibility with RequireJS, NodeJS & vanilla JS !
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"; | |
| //Mon Code | |
| /*********************************************************\ | |
| MULTI EXPORT | |
| \*********************************************************/ | |
| if (typeof exports === 'object') { | |
| module.exports = monContenueAExporter; | |
| } else if (typeof define === 'function') { | |
| define(function() { return monContenueAExporter; }); | |
| } else if (typeof GrifGame === 'object') { | |
| GrifGame.monContenueAExporter = monContenueAExporter; | |
| } else { | |
| this.monContenueAExporter = monContenueAExporter; | |
| } | |
| }).call(function() { | |
| return this || (typeof window !== 'undefined' ? window : global); | |
| }()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment