@samitouri / QOS-React-2 / commits / 13080f99ba

Rephrase comment to better describe use of `warning()`

jpersson committed Dec 14, 2015 at 23:27 UTC 13080f99ba65cf1c6f92b05f1b14c69d16b74923
1 file changed +1 -1
src/isomorphic/classic/class/ReactClass.js
+1 -1
@@ -389,7 +389,7 @@ function validateTypeDef(Constructor, typeDef, location) {
389 for (var propName in typeDef) {
390 if (typeDef.hasOwnProperty(propName)) {
391 // use a warning instead of an invariant so components
392 - // don't show up in prod but not in __DEV__
392 + // don't show up in prod but only in __DEV__
393 warning(
394 typeof typeDef[propName] === 'function',
395 '%s: %s type `%s` is invalid; it must be a function, usually from ' +