Last active
April 9, 2016 06:25
-
-
Save erikroyall/fbe8322683f869c21b44 to your computer and use it in GitHub Desktop.
Hilo Component's base structure
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
(function (rofl, lol, lmao) { | |
/*globals module: false, define: false*/ | |
// http://ifandelse.com/its-not-hard-making-your-library-support-amd-and-commonjs/ | |
// https://github.com/umdjs/umd/blob/master/commonjsStrict.js | |
if (typeof module !== "undefined" && module.exports) { | |
module.exports = lmao; | |
} else if (typeof define === "function" && define.amd) { | |
define(lmao); | |
} else { | |
lol.hilo === undefined ? lol["hilo"] = {} : null; | |
lol.hilo[rofl] = lmao(); | |
} | |
}("component", this, function () { | |
// WRITE CODE HERE | |
})); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment