A module pattern for nearly every occasion.
This gist is a fork of work by `millermedeiros <https://gist.github.com/1251668>`_ which is, in turn, a fork of work by `rpflorence <https://gist.github.com/1198466>`_.
A module pattern for nearly every occasion.
This gist is a fork of work by `millermedeiros <https://gist.github.com/1251668>`_ which is, in turn, a fork of work by `rpflorence <https://gist.github.com/1198466>`_.
| (function (name, definition) { | |
| "use strict"; | |
| // Call the definition in the current context so that it can access the | |
| // global object in case of a browser environment. | |
| var the_module = definition.call(this), | |
| has_exports = typeof module !== 'undefined' && module.exports, | |
| obj, | |
| namespaces, | |
| scope, | |
| i, |