2014-11-23 16:17:49 +11:00

28 lines
456 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 Test() {
this.state = "test";
};
var Foo = (function (Bar) {
var Foo = function Foo() {
this.state = "test";
};
_extends(Foo, Bar);
return Foo;
})(Bar);