Similar to nodejs' util.inherits (example / source code).
So one can do:
function Foo() {}
Foo.prototype.something = function () {};
function BarFoo() {
BarFoo.super.call(this);
}
oo.inheritClass( BarFoo, Foo );
BarFoo.prototype.something = function () {
BarFoo.super.prototype.something.apply(this);
};
NodeJS calls it super_ (with trailing underscore), I guess we don't want to do that.
Moved from https://github.com/trevorparscal/oojs/issues/16.
Version: unspecified
Severity: enhancement