ensure cloned is always set to false for this._data

by making all assignments of this._data go through applyChanges
This commit is contained in:
Bruno Windels 2020-09-24 16:40:51 +02:00
parent b03cbc3ae9
commit 46abafdccc

View file

@ -223,7 +223,8 @@ class SummaryData {
export class RoomSummary {
constructor(roomId) {
this._data = new SummaryData(null, roomId);
this._data = null;
this.applyChanges(new SummaryData(null, roomId));
}
get data() {
@ -286,7 +287,7 @@ export class RoomSummary {
}
async load(summary) {
this._data = new SummaryData(summary);
this.applyChanges(new SummaryData(summary));
}
}