implement new method awaitedOps in favor of awaitedDeletes/awaitedInserts. This will fix some bugs when the type gets out of sync with the state of yjs

This commit is contained in:
Kevin Jahns
2016-05-06 12:53:10 +01:00
parent 996566419c
commit 5b835563c8
5 changed files with 123 additions and 15 deletions

View File

@@ -413,7 +413,7 @@ module.exports = function (Y /* :any */) {
// notify parent, if it was instanciated as a custom type
if (t != null) {
let o = Y.utils.copyObject(op)
let o = Y.utils.copyOperation(op)
yield* t._changed(transaction, o)
}
if (!op.deleted) {