2014-10-11 22:33:08 +11:00

25 lines
386 B
JavaScript

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