(type, props, canUseEventSystem)
| 15190 | } |
| 15191 | |
| 15192 | var warnUnknownProperties = function (type, props, canUseEventSystem) { |
| 15193 | var unknownProps = []; |
| 15194 | for (var key in props) { |
| 15195 | var isValid = validateProperty$1(type, key, props[key], canUseEventSystem); |
| 15196 | if (!isValid) { |
| 15197 | unknownProps.push(key); |
| 15198 | } |
| 15199 | } |
| 15200 | |
| 15201 | var unknownPropString = unknownProps.map(function (prop) { |
| 15202 | return '`' + prop + '`'; |
| 15203 | }).join(', '); |
| 15204 | if (unknownProps.length === 1) { |
| 15205 | 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()); |
| 15206 | } else if (unknownProps.length > 1) { |
| 15207 | 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()); |
| 15208 | } |
| 15209 | }; |
| 15210 | |
| 15211 | function validateProperties$2(type, props, canUseEventSystem) { |
| 15212 | if (isCustomComponent(type, props)) { |
no test coverage detected