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

Function updateLineWidgets

static/editor.md/lib/codemirror/lib/codemirror.js:983–991  ·  view source on GitHub ↗
(cm, lineView, dims)

Source from the content-addressed store, hash-verified

981 }
982
983 function updateLineWidgets(cm, lineView, dims) {
984 if (lineView.alignable) lineView.alignable = null;
985 for (var node = lineView.node.firstChild, next; node; node = next) {
986 var next = node.nextSibling;
987 if (node.className == "CodeMirror-linewidget")
988 lineView.node.removeChild(node);
989 }
990 insertLineWidgets(cm, lineView, dims);
991 }
992
993 // Build a line's DOM representation from scratch
994 function buildLineElement(cm, lineView, lineN, dims) {

Callers 1

updateLineForChangesFunction · 0.70

Calls 1

insertLineWidgetsFunction · 0.70

Tested by

no test coverage detected