1 | SubClass.prototype.foobar = function(str) { |
yea, as simple as that.
Don’t forget sub-class is made of this
1 | SubClass.prototype = new BaseClass(); |
This makes all legit.
Full source view
1 | function BaseClass(){} |
1 | SubClass.prototype.foobar = function(str) { |
yea, as simple as that.
Don’t forget sub-class is made of this
1 | SubClass.prototype = new BaseClass(); |
This makes all legit.
Full source view
1 | function BaseClass(){} |