The library for web and native user interfaces.
Remove the check for console.warn
We already polyfill this at FB and we should recommend https://github.com/paulmillr/console-polyfill for open source.
Pete Hunt committed
Jul 8, 2013 at 11:41 UTC
1658feade8fb4dd56c5d90dcb34b3766a2d9600e
2 files changed
+2
-2
src/core/ReactComponent.js
+1
-1
@@ -106,7 +106,7 @@ function validateExplicitKey(component) {
106
message += ' It was passed a child from ' + childOwnerName + '.';
107
}
108
109
- global.console && console.warn && console.warn(message);
109
+ console.warn(message);
110
}
111
112
/**
src/dom/components/ReactDOMTextarea.js
+1
-1
@@ -53,7 +53,7 @@ var ReactDOMTextarea = ReactCompositeComponent.createClass({
53
// TODO (yungsters): Remove support for children content in <textarea>.
54
var children = this.props.children;
55
if (children != null) {
56
- global.console && console.warn && console.warn(
56
+ console.warn(
57
'Use the `defaultValue` or `value` props instead of setting children ' +
58
'on <textarea>.'
59
);