Skip to content

Instantly share code, notes, and snippets.

@166MMX
Last active December 17, 2015 04:58
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 166MMX/5554106 to your computer and use it in GitHub Desktop.
Save 166MMX/5554106 to your computer and use it in GitHub Desktop.
var extendObject = function extendObject (subObject, superObject)
{
var tempObject = function tempObject () {};
tempObject.prototype = superObject.prototype;
subObject.prototype = new tempObject();
subObject.prototype.constructor = subObject;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment