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

Function attachDoc

tools/pythonauto/static/codemirror/codemirror.js:5195–5204  ·  view source on GitHub ↗
(cm, doc)

Source from the content-addressed store, hash-verified

5193 }
5194
5195 function attachDoc(cm, doc) {
5196 if (doc.cm) throw new Error("This document is already in use.");
5197 cm.doc = doc;
5198 doc.cm = cm;
5199 estimateLineHeights(cm);
5200 loadMode(cm);
5201 if (!cm.options.lineWrapping) computeMaxLength(cm);
5202 cm.options.mode = doc.modeOption;
5203 regChange(cm);
5204 }
5205
5206 // LINE UTILITIES
5207

Callers 1

codemirror.jsFile · 0.70

Calls 4

estimateLineHeightsFunction · 0.70
loadModeFunction · 0.70
computeMaxLengthFunction · 0.70
regChangeFunction · 0.70

Tested by

no test coverage detected