quidmonkey/namespacejs — pull request #1 by brophdawg11 (2014-05-30 18:25:20+00:00)
Title: Adjusted so that a module should now return itself from the function

Adjusted so that a module should now return itself from the function, instead of modifying 'this'. This allows the creation of new constructors as modules since they cannot otherwise be assigned to 'this'.

Example usage:

module('View', function () {
return function (opts) {
// here be dragons...
}
};