Skip to content

Instantly share code, notes, and snippets.

@grifdail
Last active December 28, 2015 12:39
Show Gist options
  • Select an option

  • Save grifdail/7501616 to your computer and use it in GitHub Desktop.

Select an option

Save grifdail/7501616 to your computer and use it in GitHub Desktop.
multi exportCompatibility with RequireJS, NodeJS & vanilla JS !
(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