| 4718 | |
| 4719 | // noop |
| 4720 | function validateTypeDef(Constructor, typeDef, location) { |
| 4721 | for (var propName in typeDef) { |
| 4722 | if (typeDef.hasOwnProperty(propName)) { |
| 4723 | // use a warning instead of an invariant so components |
| 4724 | // don't show up in prod but not in __DEV__ |
| 4725 | "development" !== 'production' ? warning(typeof typeDef[propName] === 'function', '%s: %s type `%s` is invalid; it must be a function, usually from ' + 'React.PropTypes.', Constructor.displayName || 'ReactClass', ReactPropTypeLocationNames[location], propName) : undefined; |
| 4726 | } |
| 4727 | } |
| 4728 | } |
| 4729 | |
| 4730 | function validateMethodOverride(proto, name) { |
| 4731 | var specPolicy = ReactClassInterface.hasOwnProperty(name) ? ReactClassInterface[name] : null; |