2014-10-18 15:42:36 +11:00

27 lines
423 B
JavaScript

"use strict";
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);