Skip to content

Instantly share code, notes, and snippets.

@inhji
Last active August 29, 2015 14:01
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save inhji/cdb0511d0ef347cd03ac to your computer and use it in GitHub Desktop.
Multi Export (Browser, CommonJS, RequireJS)
// CommonJS
if (typeof exports !== "undefined") {
if (typeof module !== "undefined" && module.exports) {
exports = module.exports = betta;
}
// RequireJS
exports["\u00df"] = betta;
} else {
// Global method
root["\u00df"] = betta;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment