This commit is contained in:
Kevin Jahns 2022-03-02 13:25:56 +01:00
parent a5ffdce342
commit d0f9c4a27f
3 changed files with 7 additions and 5 deletions

View File

@ -27,7 +27,9 @@ build collaborative or distributed applications ping us at
## Sponsorship
Please contribute to the project financially if your company relies on Yjs. Support the project and receive more attention on your tickets. [![Become a Sponsor](https://img.shields.io/static/v1?label=Become%20a%20Sponsor&message=%E2%9D%A4&logo=GitHub&style=flat&color=d42f2d)](https://github.com/sponsors/dmonad)
Please contribute to the project financially if your company relies on Yjs.
Support the project and receive more attention on your tickets.
[![Become a Sponsor](https://img.shields.io/static/v1?label=Become%20a%20Sponsor&message=%E2%9D%A4&logo=GitHub&style=flat&color=d42f2d)](https://github.com/sponsors/dmonad)
## Who is using Yjs

View File

@ -131,8 +131,8 @@ export const decodeUpdateV2 = (update, YDecoder = UpdateDecoderV2) => {
structs.push(curr)
}
return {
'structs': structs,
'ds': readDeleteSet(updateDecoder),
structs,
ds: readDeleteSet(updateDecoder)
}
}

View File

@ -530,7 +530,7 @@ export const testUndoBlockBug = tc => {
/**
* Undo text formatting delete should not corrupt peer state.
*
*
* @see https://github.com/yjs/yjs/issues/392
* @param {t.TestCase} tc
*/
@ -539,7 +539,7 @@ export const testUndoDeleteTextFormat = tc => {
const text = doc.getText()
text.insert(0, 'Attack ships on fire off the shoulder of Orion.')
const doc2 = new Y.Doc()
const text2 = doc2.getText();
const text2 = doc2.getText()
Y.applyUpdate(doc2, Y.encodeStateAsUpdate(doc))
const undoManager = new Y.UndoManager(text)