mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-06-15 02:34:48 -04:00
Changeset: Move changeset logic to a new Changeset
class
This commit is contained in:
parent
a470253779
commit
b718d88157
11 changed files with 193 additions and 127 deletions
|
@ -158,7 +158,7 @@ const makeChangesetTracker = (scheduler, apool, aceCallbacksProvider) => {
|
|||
})();
|
||||
const serializedOps = Changeset.serializeOps(Changeset.squashOps(ops, true));
|
||||
userChangeset = Changeset.pack(cs.oldLen, cs.newLen, serializedOps, cs.charBank);
|
||||
Changeset.checkRep(userChangeset);
|
||||
Changeset.unpack(userChangeset).validate();
|
||||
|
||||
if (Changeset.isIdentity(userChangeset)) toSubmit = null;
|
||||
else toSubmit = userChangeset;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue