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

Function shouldIgnoreAttribute

code/dependency-injection/public/app.js:4142–4153  ·  view source on GitHub ↗
(name, propertyInfo, isCustomComponentTag)

Source from the content-addressed store, hash-verified

4140}
4141
4142function shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag) {
4143 if (propertyInfo !== null) {
4144 return propertyInfo.type === RESERVED;
4145 }
4146 if (isCustomComponentTag) {
4147 return false;
4148 }
4149 if (name.length > 2 && (name[0] === 'o' || name[0] === 'O') && (name[1] === 'n' || name[1] === 'N')) {
4150 return true;
4151 }
4152 return false;
4153}
4154
4155function shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag) {
4156 if (propertyInfo !== null && propertyInfo.type === RESERVED) {

Callers 2

setValueForPropertyFunction · 0.70
diffHydratedProperties$1Function · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected