Skip to content

Instantly share code, notes, and snippets.

@conradz
Forked from ded/module.js
Created September 19, 2012 11:07
Show Gist options
  • Save conradz/3749080 to your computer and use it in GitHub Desktop.
Save conradz/3749080 to your computer and use it in GitHub Desktop.
!function (name, definition) {
if (typeof define == 'function' && define.amd) define(name, definition)
else if (typeof module != 'undefined') module.exports = definition()
else this[name] = definition()
}('thing', function () {
// codes
return module
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment