31 lines
642 B
JavaScript
31 lines
642 B
JavaScript
"use strict";
|
|
|
|
var _inherits = function (child, parent) {
|
|
if (typeof parent !== "function" && parent !== null) {
|
|
throw new TypeError("Super expression must either be null or a function, not " + typeof parent);
|
|
}
|
|
child.prototype = Object.create(parent && parent.prototype, {
|
|
constructor: {
|
|
value: child,
|
|
enumerable: false,
|
|
writable: true,
|
|
configurable: true
|
|
}
|
|
});
|
|
if (parent) child.__proto__ = parent;
|
|
};
|
|
|
|
var Test = function Test() {
|
|
this.state = "test";
|
|
};
|
|
|
|
var Foo = (function (Bar) {
|
|
var Foo = function Foo() {
|
|
this.state = "test";
|
|
};
|
|
|
|
_inherits(Foo, Bar);
|
|
|
|
return Foo;
|
|
})(Bar);
|