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

Function propagate

static/js/codemirror/codemirror.js:4533–4542  ·  view source on GitHub ↗
(doc, skip, sharedHist)

Source from the content-addressed store, hash-verified

4531
4532 function linkedDocs(doc, f, sharedHistOnly) {
4533 function propagate(doc, skip, sharedHist) {
4534 if (doc.linked) for (var i = 0; i < doc.linked.length; ++i) {
4535 var rel = doc.linked[i];
4536 if (rel.doc == skip) continue;
4537 var shared = sharedHist && rel.sharedHist;
4538 if (sharedHistOnly && !shared) continue;
4539 f(rel.doc, shared);
4540 propagate(rel.doc, doc, shared);
4541 }
4542 }
4543 propagate(doc, null, true);
4544 }
4545

Callers 1

linkedDocsFunction · 0.85

Calls 1

fFunction · 0.50

Tested by

no test coverage detected