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

@@ -1068,7 +1068,7 @@ module.exports = function (Y/* :any */) {
/* this is what we used before.. use this as a reference..
* makeOperationReady (startSS, op) {
op = Y.Struct[op.struct].encode(op)
op = Y.utils.copyObject(op)
op = Y.utils.copyObject(op) -- use copyoperation instead now!
var o = op
var ids = [op.id]
// search for the new op.right