Skip to content

Instantly share code, notes, and snippets.

@ded
Created October 9, 2011 21:02
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ded/1274176 to your computer and use it in GitHub Desktop.
Save ded/1274176 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