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

Function changeLine

samples/common/codehighlight/codemirror.js:5550–5557  ·  view source on GitHub ↗
(doc, handle, changeType, op)

Source from the content-addressed store, hash-verified

5548 // returning the number and optionally registering the line as
5549 // changed.
5550 function changeLine(doc, handle, changeType, op) {
5551 var no = handle, line = handle;
5552 if (typeof handle == "number") { line = getLine(doc, clipLine(doc, handle)); }
5553 else { no = lineNo(handle); }
5554 if (no == null) { return null }
5555 if (op(line, no) && doc.cm) { regLineChange(doc.cm, no, changeType); }
5556 return line
5557 }
5558
5559 // The document is represented as a BTree consisting of leaves, with
5560 // chunk of lines in them, and branches, with up to ten leaves or

Callers 2

addLineWidgetFunction · 0.85
codemirror.jsFile · 0.85

Calls 4

getLineFunction · 0.85
clipLineFunction · 0.85
lineNoFunction · 0.85
regLineChangeFunction · 0.85

Tested by

no test coverage detected