if (!window.namespace) { | |
var namespace = {}; | |
} | |
(function(namespace){ | |
namespace.FunctionName = function(){ | |
this.load(); | |
}; | |
namespace.FunctionName.prototype.load = function() { | |
// Do Something | |
}; | |
return new namespace.FunctionName(); | |
})(window, namespace); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment