MCPcopy Index your code
hub / github.com/microsoft/SandDance / setAttribute

Function setAttribute

docs/app/js/sanddance-app.js:6676–6679  ·  view source on GitHub ↗
(el, ns, name, value)

Source from the content-addressed store, hash-verified

6674 }
6675}
6676function setAttribute(el, ns, name, value) {
6677 if (ns) el.setAttributeNS(null, name, value);
6678 else el.setAttribute(name, value);
6679}
6680function flatten(o) {
6681 const arr = [];
6682 for(let prop in o)arr.push(`${decamelize(prop, "-")}:${o[prop]}`);

Callers 7

createElementFunction · 0.70
useKeytipRefFunction · 0.70
markFunction · 0.70
groupFunction · 0.70
textFunction · 0.70
emitFunction · 0.70
setAttributesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected