mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Removing unnecessary returns
This commit is contained in:
1 parent
bab94bf2af
commit
8fc4f23cdb
1 file changed
-2
@@ -495,7 +495,6 @@ var CommentForm = React.createClass({
|
||||
// TODO: send request to the server
|
||||
this.refs.author.getDOMNode().value = '';
|
||||
this.refs.text.getDOMNode().value = '';
|
||||
return;
|
||||
},
|
||||
render: function() {
|
||||
return (
|
||||
@@ -577,7 +576,6 @@ var CommentForm = React.createClass({
|
||||
this.props.onCommentSubmit({author: author, text: text});
|
||||
this.refs.author.getDOMNode().value = '';
|
||||
this.refs.text.getDOMNode().value = '';
|
||||
return;
|
||||
},
|
||||
render: function() {
|
||||
return (
|
||||
|
||||
Reference in new issue
Block a user