MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / commitAttr

Function commitAttr

packages/sdk-playground/src/main.ts:561–565  ·  view source on GitHub ↗
(name: string, raw: string)

Source from the content-addressed store, hash-verified

559}
560
561function commitAttr(name: string, raw: string) {
562 if (!comp || !selectedId) return;
563 comp.element(selectedId).setAttribute(name, raw.trim() || null);
564 logEntry("op", { setAttribute: { id: selectedId, name, value: raw } });
565}
566
567function appendAttributesSection(container: HTMLElement, el: PropEl) {
568 const sec = propSection("Attributes");

Callers 1

attrRowFunction · 0.85

Calls 3

logEntryFunction · 0.85
setAttributeMethod · 0.65
elementMethod · 0.65

Tested by

no test coverage detected