MCPcopy Index your code
hub / github.com/DHTMLX/gantt / getMarkedSpanFor

Function getMarkedSpanFor

samples/common/codehighlight/codemirror.js:1308–1313  ·  view source on GitHub ↗
(spans, marker)

Source from the content-addressed store, hash-verified

1306
1307 // Search an array of spans for a span matching the given marker.
1308 function getMarkedSpanFor(spans, marker) {
1309 if (spans) { for (var i = 0; i < spans.length; ++i) {
1310 var span = spans[i];
1311 if (span.marker == marker) { return span }
1312 } }
1313 }
1314 // Remove a span from an array, returning undefined if no spans are
1315 // left (we don't store arrays for lines without spans).
1316 function removeMarkedSpan(spans, span) {

Callers 3

stretchSpansOverChangeFunction · 0.85
lineIsHiddenInnerFunction · 0.85
codemirror.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected