(spans, marker)
| 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) { |
no outgoing calls
no test coverage detected