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

Function getMarkedSpanFor

static/mergely/lib/codemirror.js:6314–6319  ·  view source on GitHub ↗
(spans, marker)

Source from the content-addressed store, hash-verified

6312
6313 // Search an array of spans for a span matching the given marker.
6314 function getMarkedSpanFor(spans, marker) {
6315 if (spans) for (var i = 0; i < spans.length; ++i) {
6316 var span = spans[i];
6317 if (span.marker == marker) return span;
6318 }
6319 }
6320 // Remove a span from an array, returning undefined if no spans are
6321 // left (we don't store arrays for lines without spans).
6322 function removeMarkedSpan(spans, span) {

Callers 3

codemirror.jsFile · 0.70
stretchSpansOverChangeFunction · 0.70
lineIsHiddenInnerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected