MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / commitIfDirty

Method commitIfDirty

packages/app-core/src/lib/cm-table.ts:217–222  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

215 }
216
217 private commitIfDirty(): void {
218 if (!this.dirty) return
219 this.syncFromDom()
220 this.dirty = false
221 commitTable(this.view, this.dom as HTMLElement, this.model)
222 }
223
224 toDOM(view: EditorView): HTMLElement {
225 this.view = view

Callers 4

toDOMMethod · 0.95
onCellKeydownMethod · 0.95
exitToEditorMethod · 0.95
destroyMethod · 0.95

Calls 2

syncFromDomMethod · 0.95
commitTableFunction · 0.85

Tested by

no test coverage detected