loaded event when loaded from persistence adapter

This commit is contained in:
Kevin Jahns
2018-01-08 02:28:46 +01:00
parent 445dd3e0da
commit 5a68b9f4ad
5 changed files with 23 additions and 3 deletions

View File

@@ -66,10 +66,12 @@ export default class AbstractPersistence {
y.transact(function () {
if (model != null) {
fromBinary(y, new BinaryDecoder(new Uint8Array(model)))
y.loaded = true
}
if (updates != null) {
for (let i = 0; i < updates.length; i++) {
integrateRemoteStructs(y, new BinaryDecoder(new Uint8Array(updates[i])))
y.loaded = true
}
}
})