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

Function regLineChange

samples/common/codehighlight/codemirror.js:3057–3068  ·  view source on GitHub ↗
(cm, line, type)

Source from the content-addressed store, hash-verified

3055 // Register a change to a single line. Type must be one of "text",
3056 // "gutter", "class", "widget"
3057 function regLineChange(cm, line, type) {
3058 cm.curOp.viewChanged = true;
3059 var display = cm.display, ext = cm.display.externalMeasured;
3060 if (ext && line >= ext.lineN && line < ext.lineN + ext.size)
3061 { display.externalMeasured = null; }
3062
3063 if (line < display.viewFrom || line >= display.viewTo) { return }
3064 var lineView = display.view[findViewIndex(cm, line)];
3065 if (lineView.node == null) { return }
3066 var arr = lineView.changes || (lineView.changes = []);
3067 if (indexOf(arr, type) == -1) { arr.push(type); }
3068 }
3069
3070 // Clear the view.
3071 function resetView(cm) {

Callers 7

highlightWorkerFunction · 0.85
shiftDocFunction · 0.85
changeLineFunction · 0.85
codemirror.jsFile · 0.85
markTextFunction · 0.85
addEditorMethodsFunction · 0.85

Calls 2

findViewIndexFunction · 0.85
indexOfFunction · 0.85

Tested by

no test coverage detected