Skip to content

Instantly share code, notes, and snippets.

@dameleon
Last active December 29, 2015 07:49
Show Gist options
  • Save dameleon/7639336 to your computer and use it in GitHub Desktop.
Save dameleon/7639336 to your computer and use it in GitHub Desktop.
;(function(global, document, undefined) {
function Hoge() {
// constructor
return this;
}
Hoge.prototype = {
constructor: Hoge,
hoge: _hoge,
member: _member,
};
function _hoge() {
}
function _member() {
return private();
}
//################# private method
function private() {
}
global.Hoge = Hoge;
})(window, document, void 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment