chore: elegance

This commit is contained in:
cha0s 2019-03-27 21:41:46 -05:00
parent 9a153dd90d
commit f9826e16d5

View File

@ -96,8 +96,7 @@ export class Tiles extends decorate(class {}) {
}
tick(elapsed) {
this._sizeState = this._sizeState.set(0, this.width);
this._sizeState = this._sizeState.set(1, this.height);
this._sizeState = this._sizeState.set(0, this.width).set(1, this.height);
this._state = this._state.set('size', this._sizeState);
this._state = this._state.set('data', this.data);
}