inheritance example in javascript
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var blank = (function () {
function blank() {
}
blank.prototype.method = function () {
};
return blank;
})();
var foo = (function (_super) {
__extends(foo, _super);
function foo(dook) {
_super.call(this);
this.dook = dook;
}
return foo;
})(blank);