MCPcopy
hub / github.com/krasimir/react-in-patterns / dg

Function dg

code/dependency-injection-module-system/public/app.js:18297–18298  ·  view source on GitHub ↗
(a,b,c,d,e)

Source from the content-addressed store, hash-verified

18295(h={}),h[b]="")}else"dangerouslySetInnerHTML"!==a&&"children"!==a&&"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(ua.hasOwnProperty(a)?f||(f=[]):(f=f||[]).push(a,null));for(a in d){var k=d[a];g=null!=c?c[a]:void 0;if(d.hasOwnProperty(a)&&k!==g&&(null!=k||null!=g))if("style"===a)if(g){for(b in g)!g.hasOwnProperty(b)||k&&k.hasOwnProperty(b)||(h||(h={}),h[b]="");for(b in k)k.hasOwnProperty(b)&&g[b]!==k[b]&&(h||(h={}),h[b]=k[b])}else h||(f||(f=[]),f.push(a,h)),
18296h=k;else"dangerouslySetInnerHTML"===a?(k=k?k.__html:void 0,g=g?g.__html:void 0,null!=k&&g!==k&&(f=f||[]).push(a,""+k)):"children"===a?g===k||"string"!==typeof k&&"number"!==typeof k||(f=f||[]).push(a,""+k):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&(ua.hasOwnProperty(a)?(null!=k&&Zf(e,a),f||g===k||(f=[])):(f=f||[]).push(a,k))}h&&(f=f||[]).push("style",h);return f}
18297function dg(a,b,c,d,e){"input"===c&&"radio"===e.type&&null!=e.name&&Xc(a,e);Wf(c,d);d=Wf(c,e);for(var f=0;f<b.length;f+=2){var h=b[f],g=b[f+1];"style"===h?Tf(a,g,Yf):"dangerouslySetInnerHTML"===h?Pf(a,g):"children"===h?Qf(a,g):Tc(a,h,g,d)}switch(c){case "input":Yc(a,e);break;case "textarea":Jf(a,e);break;case "select":a._wrapperState.initialValue=void 0,b=a._wrapperState.wasMultiple,a._wrapperState.wasMultiple=!!e.multiple,c=e.value,null!=c?Ff(a,!!e.multiple,c,!1):b!==!!e.multiple&&(null!=e.defaultValue?
18298Ff(a,!!e.multiple,e.defaultValue,!0):Ff(a,!!e.multiple,e.multiple?[]:"",!1))}}
18299function eg(a,b,c,d,e){switch(b){case "iframe":case "object":X("topLoad","load",a);break;case "video":case "audio":for(var f in fe)fe.hasOwnProperty(f)&&X(f,fe[f],a);break;case "source":X("topError","error",a);break;case "img":case "image":case "link":X("topError","error",a);X("topLoad","load",a);break;case "form":X("topReset","reset",a);X("topSubmit","submit",a);break;case "details":X("topToggle","toggle",a);break;case "input":Vc(a,c);X("topInvalid","invalid",a);Zf(e,"onChange");break;case "select":Gf(a,
18300c);X("topInvalid","invalid",a);Zf(e,"onChange");break;case "textarea":If(a,c),X("topInvalid","invalid",a),Zf(e,"onChange")}Vf(b,c,Yf);d=null;for(var h in c)c.hasOwnProperty(h)&&(f=c[h],"children"===h?"string"===typeof f?a.textContent!==f&&(d=["children",f]):"number"===typeof f&&a.textContent!==""+f&&(d=["children",""+f]):ua.hasOwnProperty(h)&&null!=f&&Zf(e,h));switch(b){case "input":jc(a);$c(a,c);break;case "textarea":jc(a);Kf(a,c);break;case "select":case "option":break;default:"function"===typeof c.onClick&&
18301(a.onclick=C)}return d}function ng(a,b){return a.nodeValue!==b}

Callers 1

app.jsFile · 0.70

Calls 8

XcFunction · 0.70
WfFunction · 0.70
TfFunction · 0.70
QfFunction · 0.70
TcFunction · 0.70
YcFunction · 0.70
JfFunction · 0.70
FfFunction · 0.70

Tested by

no test coverage detected