MCPcopy Create free account
hub / github.com/TruthHun/BookStack / updateLineClasses

Function updateLineClasses

static/editor.md/lib/codemirror/lib/codemirror.js:943–951  ·  view source on GitHub ↗
(lineView)

Source from the content-addressed store, hash-verified

941 }
942
943 function updateLineClasses(lineView) {
944 updateLineBackground(lineView);
945 if (lineView.line.wrapClass)
946 ensureLineWrapped(lineView).className = lineView.line.wrapClass;
947 else if (lineView.node != lineView.text)
948 lineView.node.className = "";
949 var textClass = lineView.textClass ? lineView.textClass + " " + (lineView.line.textClass || "") : lineView.line.textClass;
950 lineView.text.className = textClass || "";
951 }
952
953 function updateLineGutter(cm, lineView, lineN, dims) {
954 if (lineView.gutter) {

Callers 3

updateLineForChangesFunction · 0.70
updateLineTextFunction · 0.70
buildLineElementFunction · 0.70

Calls 2

updateLineBackgroundFunction · 0.70
ensureLineWrappedFunction · 0.70

Tested by

no test coverage detected