MCPcopy Create free account
hub / github.com/TruthHun/BookStack / update

Function update

static/editor.md/lib/codemirror/lib/codemirror.js:6947–6950  ·  view source on GitHub ↗
(line, text, spans)

Source from the content-addressed store, hash-verified

6945 function updateDoc(doc, change, markedSpans, estimateHeight) {
6946 function spansFor(n) {return markedSpans ? markedSpans[n] : null;}
6947 function update(line, text, spans) {
6948 updateLine(line, text, spans, estimateHeight);
6949 signalLater(line, "change", line, change);
6950 }
6951 function linesFor(start, end) {
6952 for (var i = start, result = []; i < end; ++i)
6953 result.push(new Line(text[i], spansFor(i), estimateHeight));

Callers 1

updateDocFunction · 0.70

Calls 2

updateLineFunction · 0.70
signalLaterFunction · 0.70

Tested by

no test coverage detected