2014-11-03 17:52:15 +11:00

35 lines
768 B
JavaScript

"use strict";
var _classProps = function (child, staticProps, instanceProps) {
if (staticProps) Object.defineProperties(child, staticProps);
if (instanceProps) Object.defineProperties(child.prototype, instanceProps);
};
var _extends = function (child, parent) {
child.prototype = Object.create(parent.prototype, { constructor: {
value: child,
enumerable: false,
writable: true,
configurable: true
} });
child.__proto__ = parent;
};
var Test = (function (Foo) {
var Test = function Test() {
Foo.prototype.test.whatever();
Foo.prototype.test.call(this);
};
_extends(Test, Foo);
_classProps(Test, { test: {
writable: true,
value: function () {
return Foo.wow.call(this);
}
} });
return Test;
})(Foo);