Skip to content

Instantly share code, notes, and snippets.

@kirbysayshi
Created March 2, 2011 19:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kirbysayshi/851497 to your computer and use it in GitHub Desktop.
Save kirbysayshi/851497 to your computer and use it in GitHub Desktop.
(function(){
function F(){};
function inherits(child, parent) {
F.prototype = parent.prototype;
//child.superClass_ = parent.prototype;
child.prototype = new F();
child.prototype.constructor = child;
}
})();
function MyObject(){
EventEmitter.call(this);
}
inhertits(MyObject, EventEmitter);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment