diff --git a/_js/examples/markdown.js b/_js/examples/markdown.js index ec70b955..89facd3a 100644 --- a/_js/examples/markdown.js +++ b/_js/examples/markdown.js @@ -11,9 +11,9 @@ var MarkdownEditor = React.createClass({\n\ getInitialState: function() {\n\ return {value: 'Type some *markdown* here!'};\n\ },\n\ - handleInput: React.autoBind(function() {\n\ + handleInput: function() {\n\ this.setState({value: this.refs.textarea.getDOMNode().value});\n\ - }),\n\ + },\n\ render: function() {\n\ return (\n\ <div className=\"MarkdownEditor\">\n\ diff --git a/_js/examples/timer.js b/_js/examples/timer.js index f0488ec4..68f4f657 100644 --- a/_js/examples/timer.js +++ b/_js/examples/timer.js @@ -7,9 +7,9 @@ var Timer = React.createClass({\n\ getInitialState: function() {\n\ return {secondsElapsed: 0};\n\ },\n\ - tick: React.autoBind(function() {\n\ + tick: function() {\n\ this.setState({secondsElapsed: this.state.secondsElapsed + 1});\n\ - }),\n\ + },\n\ componentDidMount: function() {\n\ setInterval(this.tick, 1000);\n\ },\n\