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

Function detachMarkedSpans

static/editor.md/lib/codemirror/lib/codemirror.js:6293–6299  ·  view source on GitHub ↗
(line)

Source from the content-addressed store, hash-verified

6291
6292 // Connect or disconnect spans from a line.
6293 function detachMarkedSpans(line) {
6294 var spans = line.markedSpans;
6295 if (!spans) return;
6296 for (var i = 0; i < spans.length; ++i)
6297 spans[i].marker.detachLine(line);
6298 line.markedSpans = null;
6299 }
6300 function attachMarkedSpans(line, spans) {
6301 if (!spans) return;
6302 for (var i = 0; i < spans.length; ++i)

Callers 2

updateLineFunction · 0.70
cleanUpLineFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected