I have a class declared in the traditional way, i.e.
function MyClass() { } MyClass.prototype = { };
Now I want to create a copy of this class (and not a copy of the instance created by the class), but change some prototype methods. In other words, I want to make a copy of the class with some additions ... do I need to use inheritance for this, or am I enough to iterate and assign references to my new class for the original prototype and the new?
source share