(config)
| 974 | } |
| 975 | |
| 976 | function hasValidKey(config) { |
| 977 | { |
| 978 | if (hasOwnProperty.call(config, 'key')) { |
| 979 | var getter = Object.getOwnPropertyDescriptor(config, 'key').get; |
| 980 | |
| 981 | if (getter && getter.isReactWarning) { |
| 982 | return false; |
| 983 | } |
| 984 | } |
| 985 | } |
| 986 | |
| 987 | return config.key !== undefined; |
| 988 | } |
| 989 | |
| 990 | function defineKeyPropWarningGetter(props, displayName) { |
| 991 | var warnAboutAccessingKey = function () { |
no outgoing calls
no test coverage detected