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

Function attachMarkedSpans

static/mergely/lib/codemirror.js:6502–6507  ·  view source on GitHub ↗
(line, spans)

Source from the content-addressed store, hash-verified

6500 line.markedSpans = null;
6501 }
6502 function attachMarkedSpans(line, spans) {
6503 if (!spans) return;
6504 for (var i = 0; i < spans.length; ++i)
6505 spans[i].marker.attachLine(line);
6506 line.markedSpans = spans;
6507 }
6508
6509 // Helpers used when computing which overlapping collapsed span
6510 // counts as the larger one.

Callers 2

codemirror.jsFile · 0.70
updateLineFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected