refactor: store layersView
This commit is contained in:
parent
e11dc0de35
commit
ba9b4e6b2c
|
@ -7,8 +7,8 @@ export class RoomView extends Container {
|
|||
constructor(room, renderer) {
|
||||
super();
|
||||
this.room = room;
|
||||
const layersView = new LayersView(room.layers, renderer);
|
||||
this.addChild(layersView);
|
||||
this.layersView = new LayersView(room.layers, renderer);
|
||||
this.addChild(this.layersView);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user