From d30b10a57c3659b56abb5356006bf772b343d486 Mon Sep 17 00:00:00 2001 From: M03M Date: Fri, 27 Feb 2015 11:26:52 -0600 Subject: [PATCH] Removed appbarwarning for production builds --- src/js/app-bar.jsx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/js/app-bar.jsx b/src/js/app-bar.jsx index d1b7e88749cee0..80cec78d427db7 100644 --- a/src/js/app-bar.jsx +++ b/src/js/app-bar.jsx @@ -16,7 +16,6 @@ var AppBar = React.createClass({ iconElementRight: React.PropTypes.element, title : React.PropTypes.node, zDepth: React.PropTypes.number, - }, getDefaultProps: function() { @@ -28,9 +27,12 @@ var AppBar = React.createClass({ }, componentDidMount: function() { - var warning = 'Properties iconClassNameLeft and iconElementLeft cannot be simultaneously ' + - 'defined. Please use one or the other.'; - if (this.props.iconElementLeft && this.props.iconClassNameLeft) console.warn(warning); + if (process.NODE_ENV !== 'production' && + (this.props.iconElementLeft && this.props.iconClassNameLeft)) { + var warning = 'Properties iconClassNameLeft and iconElementLeft cannot be simultaneously ' + + 'defined. Please use one or the other.'; + console.warn(warning); + } }, render: function() {