MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / updateDOMProperties

Function updateDOMProperties

code/redux/public/app.js:16434–16449  ·  view source on GitHub ↗
(domElement, updatePayload, wasCustomComponentTag, isCustomComponentTag)

Source from the content-addressed store, hash-verified

16432}
16433
16434function updateDOMProperties(domElement, updatePayload, wasCustomComponentTag, isCustomComponentTag) {
16435 // TODO: Handle wasCustomComponentTag
16436 for (var i = 0; i < updatePayload.length; i += 2) {
16437 var propKey = updatePayload[i];
16438 var propValue = updatePayload[i + 1];
16439 if (propKey === STYLE) {
16440 setValueForStyles(domElement, propValue, getStack);
16441 } else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
16442 setInnerHTML(domElement, propValue);
16443 } else if (propKey === CHILDREN) {
16444 setTextContent(domElement, propValue);
16445 } else {
16446 setValueForProperty(domElement, propKey, propValue, isCustomComponentTag);
16447 }
16448 }
16449}
16450
16451function createElement$1(type, props, rootContainerElement, parentNamespace) {
16452 var isCustomComponentTag = void 0;

Callers 1

updateProperties$1Function · 0.70

Calls 3

setValueForStylesFunction · 0.70
setTextContentFunction · 0.70
setValueForPropertyFunction · 0.70

Tested by

no test coverage detected