MCPcopy
hub / github.com/microsoft/SandDance / setAttributes

Function setAttributes

docs/app/js/sanddance-app.js:124544–124546  ·  view source on GitHub ↗
(el, attrs)

Source from the content-addressed store, hash-verified

124542 }
124543}
124544function setAttributes(el, attrs) {
124545 for(const key in attrs)setAttribute(el, key, attrs[key]);
124546}
124547function setAttribute(el, name, value14) {
124548 if (value14 != null) // if value is provided, update DOM attribute
124549 el.setAttribute(name, value14);

Callers 5

initializeFunction · 0.70
resizeFunction · 0.70
svgFunction · 0.70
updateGradientFunction · 0.70
updateClippingFunction · 0.70

Calls 1

setAttributeFunction · 0.70

Tested by

no test coverage detected