Also ignore MoveCursor ops as non-document-modifying ops

pull/1/head
Friedrich W. H. Kossebau 11 years ago
parent 13df7fe90b
commit 880101b221

@ -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();

Loading…
Cancel
Save