2014-10-23 08:59:52 +11:00

26 lines
435 B
JavaScript

"use strict";
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;
Foo.prototype.test.whatever;
};
_extends(Test, Foo);
return Test;
}(Foo);