Skip to content

Instantly share code, notes, and snippets.

@nshermione
Created January 30, 2017 13:15
Show Gist options
  • Save nshermione/6dc1c410fe8e2b262bad6ea43f4eb35f to your computer and use it in GitHub Desktop.
Save nshermione/6dc1c410fe8e2b262bad6ea43f4eb35f to your computer and use it in GitHub Desktop.
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 A = (function () {
function A() {
this.a = 1;
}
A.prototype.talk = function () {
console.log(this.a);
};
return A;
}());
var B = (function (_super) {
__extends(B, _super);
function B() {
_super.apply(this, arguments);
}
B.prototype.talk = function () {
_super.prototype.talk.call(this);
};
return B;
}(A));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment