chore: tidy

This commit is contained in:
cha0s 2019-03-19 10:52:09 -05:00
parent 8602b0e81d
commit b4e6ed7c77

View File

@ -27,8 +27,7 @@ class GraphicalBase extends Trait {
listeners() {
const listeners = {};
const trackPosition = this.params.get('trackPosition');
if (trackPosition && hasGraphics) {
if (hasGraphics && this.params.get('trackPosition')) {
listeners.traitAdded = (trait) => {
if ('positioned' === trait.constructor.type()) {
this.entity.container.position = this.entity.position;