MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / bind

Function bind

src/pages/markdownPreview/index.js:524–531  ·  view source on GitHub ↗
(nextFile, hash = "")

Source from the content-addressed store, hash-verified

522 }
523
524 async function bind(nextFile, hash = "") {
525 previewState.file = nextFile;
526 previewState.pendingHash = hash;
527 if (!previewState.page.isConnected) {
528 app.append(previewState.page);
529 }
530 await render();
531 }
532
533 function dispose() {
534 if (previewState.disposed) return;

Callers 1

onContentClickFunction · 0.85

Calls 2

appendMethod · 0.80
renderFunction · 0.70

Tested by

no test coverage detected