Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function() {
- var X, Y, x, y,
- __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; };
- X = (function() {
- function X(a, b) {
- console.log(123);
- }
- X.prototype.method = function(c, d) {
- return console.log(c, d);
- };
- return X;
- })();
- Y = (function(_super) {
- __extends(Y, _super);
- function Y() {
- Y.__super__.constructor.apply(this, arguments);
- console.log(321);
- }
- Y.prototype.method = function() {
- return console.log('a', 'b');
- };
- return Y;
- })(X);
- y = new Y();
- x = new X();
- }).call(this);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement