(type, props, canUseEventSystem)
| 15287 | } |
| 15288 | |
| 15289 | var warnUnknownProperties = function (type, props, canUseEventSystem) { |
| 15290 | var unknownProps = []; |
| 15291 | for (var key in props) { |
| 15292 | var isValid = validateProperty$1(type, key, props[key], canUseEventSystem); |
| 15293 | if (!isValid) { |
| 15294 | unknownProps.push(key); |
| 15295 | } |
| 15296 | } |
| 15297 | |
| 15298 | var unknownPropString = unknownProps.map(function (prop) { |
| 15299 | return '`' + prop + '`'; |
| 15300 | }).join(', '); |
| 15301 | if (unknownProps.length === 1) { |
| 15302 | 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()); |
| 15303 | } else if (unknownProps.length > 1) { |
| 15304 | 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()); |
| 15305 | } |
| 15306 | }; |
| 15307 | |
| 15308 | function validateProperties$2(type, props, canUseEventSystem) { |
| 15309 | if (isCustomComponent(type, props)) { |
no test coverage detected