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.
This commit is contained in:
Pete Hunt
2013-07-08 11:49:28 -07:00
committed by Paul O’Shannessy
parent 5f1eceb1ee
commit 1658feade8
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -106,7 +106,7 @@ function validateExplicitKey(component) {
message += ' It was passed a child from ' + childOwnerName + '.';
}
global.console && console.warn && console.warn(message);
console.warn(message);
}
/**
+1 -1
View File
@@ -53,7 +53,7 @@ var ReactDOMTextarea = ReactCompositeComponent.createClass({
// TODO (yungsters): Remove support for children content in <textarea>.
var children = this.props.children;
if (children != null) {
global.console && console.warn && console.warn(
console.warn(
'Use the `defaultValue` or `value` props instead of setting children ' +
'on <textarea>.'
);