diff --git a/docs/docs/tutorial.md b/docs/docs/tutorial.md
index dc11e2a683..e7c601fb15 100644
--- a/docs/docs/tutorial.md
+++ b/docs/docs/tutorial.md
@@ -379,8 +379,6 @@ var CommentBox = React.createClass({
getInitialState: function() {
$.ajax({
url: 'comments.json',
- dataType: 'json',
- mimeType: 'textPlain',
success: function(data) {
this.setState({data: data});
}.bind(this)
@@ -407,8 +405,6 @@ var CommentBox = React.createClass({
loadCommentsFromServer: function() {
$.ajax({
url: this.props.url,
- dataType: 'json',
- mimeType: 'textPlain',
success: function(data) {
this.setState({data: data});
}.bind(this)
@@ -419,10 +415,7 @@ var CommentBox = React.createClass({
},
componentWillMount: function() {
this.loadCommentsFromServer();
- setInterval(
- this.loadCommentsFromServer.bind(this),
- this.props.pollInterval
- );
+ setInterval(this.loadCommentsFromServer, this.props.pollInterval);
},
render: function() {
return (
@@ -436,13 +429,13 @@ var CommentBox = React.createClass({
});
React.renderComponent(
- ,
+ ,
document.getElementById('content')
);
```
-All we have done here is move the AJAX call to a separate method and call it when the component is first loaded and every 5 seconds after that. Try running this in your browser and changing the `comments.json` file; within 5 seconds, the changes will show!
+All we have done here is move the AJAX call to a separate method and call it when the component is first loaded and every 2 seconds after that. Try running this in your browser and changing the `comments.json` file; within 2 seconds, the changes will show!
### Adding new comments
@@ -456,7 +449,7 @@ var CommentForm = React.createClass({