MCPcopy Index your code
hub / github.com/csev/py4e / updateGutters

Function updateGutters

tools/pythonauto/static/codemirror/codemirror.js:270–282  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

268 }
269
270 function updateGutters(cm) {
271 var gutters = cm.display.gutters, specs = cm.options.gutters;
272 removeChildren(gutters);
273 for (var i = 0; i < specs.length; ++i) {
274 var gutterClass = specs[i];
275 var gElt = gutters.appendChild(elt("div", null, "CodeMirror-gutter " + gutterClass));
276 if (gutterClass == "CodeMirror-linenumbers") {
277 cm.display.lineGutter = gElt;
278 gElt.style.width = (cm.display.lineNumWidth || 1) + "px";
279 }
280 }
281 gutters.style.display = i ? "" : "none";
282 }
283
284 function lineLength(doc, line) {
285 if (line.height == 0) return 0;

Callers 2

CodeMirrorFunction · 0.70
guttersChangedFunction · 0.70

Calls 3

removeChildrenFunction · 0.70
eltFunction · 0.70
appendChildMethod · 0.45

Tested by

no test coverage detected