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

Function updateLineWidgets

static/mergely/lib/codemirror.js:1010–1018  ·  view source on GitHub ↗
(cm, lineView, dims)

Source from the content-addressed store, hash-verified

1008 }
1009
1010 function updateLineWidgets(cm, lineView, dims) {
1011 if (lineView.alignable) lineView.alignable = null;
1012 for (var node = lineView.node.firstChild, next; node; node = next) {
1013 var next = node.nextSibling;
1014 if (node.className == "CodeMirror-linewidget")
1015 lineView.node.removeChild(node);
1016 }
1017 insertLineWidgets(cm, lineView, dims);
1018 }
1019
1020 // Build a line's DOM representation from scratch
1021 function buildLineElement(cm, lineView, lineN, dims) {

Callers 1

updateLineForChangesFunction · 0.70

Calls 1

insertLineWidgetsFunction · 0.70

Tested by

no test coverage detected