* add transform-class-properties to stage 3, set spec mode to default * update readme with examples; use `buildUndefinedNode()`; change behavior to always define both static and nonstatic class properties regardless of spec/loose mode; update tests
14 lines
201 B
JavaScript
14 lines
201 B
JavaScript
var foo = "bar";
|
|
|
|
var Foo = function Foo() {
|
|
babelHelpers.classCallCheck(this, Foo);
|
|
|
|
_initialiseProps.call(this);
|
|
|
|
var foo = "foo";
|
|
};
|
|
|
|
var _initialiseProps = function () {
|
|
this.bar = foo;
|
|
};
|