Also ignore MoveCursor ops as non-document-modifying ops

This commit is contained in:
Friedrich W. H. Kossebau 2013-09-01 22:25:03 +02:00
parent 13df7fe90b
commit 880101b221

View File

@ -428,7 +428,7 @@ runtime.log("Pushing activated");
} }
// note if any local ops modified TODO: find less fragile way, perhaps have the operationFactory check it? // note if any local ops modified TODO: find less fragile way, perhaps have the operationFactory check it?
hasPushedModificationOps = hasPushedModificationOps || !/^(AddCursor|RemoveCursor)$/.test(opspec.optype); hasPushedModificationOps = hasPushedModificationOps || !/^(AddCursor|MoveCursor|RemoveCursor)$/.test(opspec.optype);
// apply locally // apply locally
opspec.timestamp = (new Date()).getTime(); opspec.timestamp = (new Date()).getTime();