MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / makeChangeNoReadonly

Function makeChangeNoReadonly

static/js/codemirror/codemirror.js:2131–2145  ·  view source on GitHub ↗
(doc, change, selUpdate)

Source from the content-addressed store, hash-verified

2129 }
2130
2131 function makeChangeNoReadonly(doc, change, selUpdate) {
2132 var selAfter = computeSelAfterChange(doc, change, selUpdate);
2133 addToHistory(doc, change, selAfter, doc.cm ? doc.cm.curOp.id : NaN);
2134
2135 makeChangeSingleDoc(doc, change, selAfter, stretchSpansOverChange(doc, change));
2136 var rebased = [];
2137
2138 linkedDocs(doc, function(doc, sharedHist) {
2139 if (!sharedHist && indexOf(rebased, doc.history) == -1) {
2140 rebaseHist(doc.history, change);
2141 rebased.push(doc.history);
2142 }
2143 makeChangeSingleDoc(doc, change, null, stretchSpansOverChange(doc, change));
2144 });
2145 }
2146
2147 function makeChangeFromHistory(doc, type) {
2148 var hist = doc.history;

Callers 1

makeChangeFunction · 0.85

Calls 8

computeSelAfterChangeFunction · 0.85
addToHistoryFunction · 0.85
makeChangeSingleDocFunction · 0.85
stretchSpansOverChangeFunction · 0.85
linkedDocsFunction · 0.85
rebaseHistFunction · 0.85
indexOfFunction · 0.70
pushMethod · 0.45

Tested by

no test coverage detected