(type, props, canUseEventSystem)
| 15318 | } |
| 15319 | |
| 15320 | var warnUnknownProperties = function (type, props, canUseEventSystem) { |
| 15321 | var unknownProps = []; |
| 15322 | for (var key in props) { |
| 15323 | var isValid = validateProperty$1(type, key, props[key], canUseEventSystem); |
| 15324 | if (!isValid) { |
| 15325 | unknownProps.push(key); |
| 15326 | } |
| 15327 | } |
| 15328 | |
| 15329 | var unknownPropString = unknownProps.map(function (prop) { |
| 15330 | return '`' + prop + '`'; |
| 15331 | }).join(', '); |
| 15332 | if (unknownProps.length === 1) { |
| 15333 | 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()); |
| 15334 | } else if (unknownProps.length > 1) { |
| 15335 | 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()); |
| 15336 | } |
| 15337 | }; |
| 15338 | |
| 15339 | function validateProperties$2(type, props, canUseEventSystem) { |
| 15340 | if (isCustomComponent(type, props)) { |
no test coverage detected