Created
January 30, 2017 13:15
-
-
Save nshermione/6dc1c410fe8e2b262bad6ea43f4eb35f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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