feat: staged

This commit is contained in:
cha0s 2019-04-19 00:23:04 -05:00
parent 14d626d924
commit 8e22e43f95

View File

@ -1,18 +1,15 @@
import {compose} from '@avocado/core';
import {Trait} from '@avocado/entity';
import {Property} from '@avocado/mixins';
export class Staged extends Trait {
const decorate = compose(
Property('stage', {
track: true,
emit: function (...args) {
this.entity.emit(...args);
},
})
)
initialize() {
this._stage = undefined;
}
get stage() {
return this._stage;
}
set stage(stage) {
this._stage = stage;
}
}
export class Staged extends decorate(Trait) {}