Merge branch 'main' into wishlist-259

This commit is contained in:
Kevin Jahns
2020-12-12 21:36:45 +01:00
7 changed files with 50 additions and 11 deletions

View File

@@ -45,6 +45,7 @@ export {
snapshot,
emptySnapshot,
findRootTypeKey,
getItem,
typeListToArraySnapshot,
typeMapGetSnapshot,
createDocFromSnapshot,

View File

@@ -257,6 +257,7 @@ export class Doc extends Observable {
}, null, true)
}
this.emit('destroyed', [true])
this.emit('destroy', [this])
super.destroy()
}