Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.