chore: tidy
This commit is contained in:
parent
8602b0e81d
commit
b4e6ed7c77
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user