Как вот это красиво записать?
if (superclass) for (var key in Class.prototype) {
if (Class.prototype.hasOwnProperty(key)
&& key in Prototype.prototype
&& Class.prototype[key] instanceof Function
&& Prototype.prototype[key] instanceof Function)
{
Class.prototype[key] = (function (key) {
var method = Class.prototype[key];
return function () {
this['super'] = Prototype.prototype[key];
return method.apply(this, arguments)
};
})(key);
}
}