chore: tidy

This commit is contained in:
cha0s 2019-10-15 01:07:36 -05:00
parent fcf09044dc
commit 40a02ea088

View File

@ -345,6 +345,9 @@ export class App extends decorate(class {}) {
} }
this.room = room; this.room = room;
// View. // View.
if (this.roomView) {
this.roomView.destroy();
}
this.stage.removeChild(this.roomView); this.stage.removeChild(this.roomView);
this.roomView = new RoomView(this.room, this.stage.renderer); this.roomView = new RoomView(this.room, this.stage.renderer);
this.stage.addChild(this.roomView); this.stage.addChild(this.roomView);