Skip to content

Instantly share code, notes, and snippets.

@ded
Created October 9, 2011 21:02
!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