(type, props, canUseEventSystem)
| 16208 | } |
| 16209 | |
| 16210 | var warnUnknownProperties = function (type, props, canUseEventSystem) { |
| 16211 | var unknownProps = []; |
| 16212 | for (var key in props) { |
| 16213 | var isValid = validateProperty$1(type, key, props[key], canUseEventSystem); |
| 16214 | if (!isValid) { |
| 16215 | unknownProps.push(key); |
| 16216 | } |
| 16217 | } |
| 16218 | |
| 16219 | var unknownPropString = unknownProps.map(function (prop) { |
| 16220 | return '`' + prop + '`'; |
| 16221 | }).join(', '); |
| 16222 | if (unknownProps.length === 1) { |
| 16223 | warning(false, 'Invalid value for prop %s on <%s> tag. Either remove it from the element, ' + 'or pass a string or number value to keep it in the DOM. ' + 'For details, see https://fb.me/react-attribute-behavior%s', unknownPropString, type, getStackAddendum$2()); |
| 16224 | } else if (unknownProps.length > 1) { |
| 16225 | warning(false, 'Invalid values for props %s on <%s> tag. Either remove them from the element, ' + 'or pass a string or number value to keep them in the DOM. ' + 'For details, see https://fb.me/react-attribute-behavior%s', unknownPropString, type, getStackAddendum$2()); |
| 16226 | } |
| 16227 | }; |
| 16228 | |
| 16229 | function validateProperties$2(type, props, canUseEventSystem) { |
| 16230 | if (isCustomComponent(type, props)) { |
no test coverage detected