Last modified: 2014-03-13 17:14:43 UTC
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.
Change-Id: Ic301140d2e0ad99eddc83f9031e12a7641fd10ae