MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / attachLine

Method attachLine

lib/web/CodeMirror/src/model/mark_text.js:133–140  ·  view source on GitHub ↗
(line)

Source from the content-addressed store, hash-verified

131 }
132
133 attachLine(line) {
134 if (!this.lines.length && this.doc.cm) {
135 let op = this.doc.cm.curOp
136 if (!op.maybeHiddenMarkers || indexOf(op.maybeHiddenMarkers, this) == -1)
137 (op.maybeUnhiddenMarkers || (op.maybeUnhiddenMarkers = [])).push(this)
138 }
139 this.lines.push(line)
140 }
141
142 detachLine(line) {
143 this.lines.splice(indexOf(this.lines, line), 1)

Callers 4

addMarkedSpanFunction · 0.80
attachMarkedSpansFunction · 0.80
addMarkedSpanFunction · 0.80
attachMarkedSpansFunction · 0.80

Calls 2

indexOfFunction · 0.90
pushMethod · 0.45

Tested by

no test coverage detected