class Parent
constructor: () ->
this.par='par'
parProto: 'parProto'
class Child extends Parent
constructor: () ->
this.chld='chld'
super
chldProto: 'chldProto'
class Current extends Child
constructor: () ->
super
inst=new Current
var Child, Current, Parent, inst,
__hasProp = {}.hasOwnProperty,
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
Parent = (function() {
function Parent() {
this.par = 'par';
}
Parent.prototype.parProto = 'parProto';
return Parent;
})();
Child = (function(_super) {
__extends(Child, _super);
function Child() {
this.chld = 'chld';
Child.__super__.constructor.apply(this, arguments);
}
Child.prototype.chldProto = 'chldProto';
return Child;
})(Parent);
Current = (function(_super) {
__extends(Current, _super);
function Current() {
Current.__super__.constructor.apply(this, arguments);
}
return Current;
})(Child);
inst = new Current;