25 lines
409 B
JavaScript

var Test = function () {
var Test = function Test() {
this.state = "test";
};
return Test;
}();
var Foo = function(Bar) {
var Foo = function Foo() {
this.state = "test";
};
Foo.prototype = Object.create(Bar.prototype, {
constructor: {
value: Foo,
enumerable: false,
writable: true,
configurable: true
}
});
Foo.__proto__ = Bar;
return Foo;
}(Bar);