19 lines
309 B
JavaScript
19 lines
309 B
JavaScript
var foo = "bar";
|
|
|
|
var Foo = function Foo() {
|
|
babelHelpers.classCallCheck(this, Foo);
|
|
|
|
_initialiseProps.call(this);
|
|
|
|
var foo = "foo";
|
|
};
|
|
|
|
var _initialiseProps = function () {
|
|
Object.defineProperty(this, "bar", {
|
|
configurable: true,
|
|
enumerable: true,
|
|
writable: true,
|
|
value: foo
|
|
});
|
|
};
|