From 0f27514cefae801863f29b2d45ec429127205949 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9liton=20Nordt?= Date: Mon, 2 Feb 2015 17:20:38 -0200 Subject: [PATCH 1/2] Removing unnecessary returns --- docs/tutorial.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/docs/tutorial.md b/docs/tutorial.md index c46ecb71..169dbd37 100644 --- a/docs/tutorial.md +++ b/docs/tutorial.md @@ -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 ( From 711becb8836d92c066cec1b3d2629e2b2024a5d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9liton=20Nordt?= Date: Tue, 3 Feb 2015 08:38:16 -0200 Subject: [PATCH 2/2] Fix highlighting --- docs/tutorial.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tutorial.md b/docs/tutorial.md index 169dbd37..ed302860 100644 --- a/docs/tutorial.md +++ b/docs/tutorial.md @@ -482,7 +482,7 @@ var CommentForm = React.createClass({ Let's make the form interactive. When the user submits the form, we should clear it, submit a request to the server, and refresh the list of comments. To start, let's listen for the form's submit event and clear it. -```javascript{3-14,17-20} +```javascript{3-13,16-19} // tutorial16.js var CommentForm = React.createClass({ handleSubmit: function(e) {