MCPcopy Create free account
hub / github.com/breck7/scroll / detachMarkedSpans

Function detachMarkedSpans

external/.scrollLibs.js:1377–1386  ·  view source on GitHub ↗
(line)

Source from the content-addressed store, hash-verified

1375
1376 // Connect or disconnect spans from a line.
1377 function detachMarkedSpans(line) {
1378 var spans = line.markedSpans
1379 if (!spans) {
1380 return
1381 }
1382 for (var i = 0; i < spans.length; ++i) {
1383 spans[i].marker.detachLine(line)
1384 }
1385 line.markedSpans = null
1386 }
1387 function attachMarkedSpans(line, spans) {
1388 if (!spans) {
1389 return

Callers 2

updateLineFunction · 0.85
cleanUpLineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected