MCPcopy Index your code
hub / github.com/ether/etherpad / getCleanNodeByKey

Function getCleanNodeByKey

src/static/js/ace2_inner.ts:936–944  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

934 clearObservedChanges();
935
936 const getCleanNodeByKey = (key) => {
937 let n = targetDoc.getElementById(key);
938 // copying and pasting can lead to duplicate ids
939 while (n && isNodeDirty(n)) {
940 n.id = '';
941 n = targetDoc.getElementById(key);
942 }
943 return n;
944 };
945
946 const observeChangesAroundNode = (node) => {
947 // Around this top-level DOM node, look for changes to the document

Callers 3

incorporateUserChangesFunction · 0.85
domAndRepSpliceFunction · 0.85
cleanNodeForIndexFunction · 0.85

Calls 1

isNodeDirtyFunction · 0.85

Tested by

no test coverage detected