From 459daa63da65631d4577fd395df623aa1e414cb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20O=E2=80=99Shannessy?= Date: Tue, 16 Jul 2013 23:44:09 -0700 Subject: [PATCH] Remove React.autoBind from examples --- _js/examples/markdown.js | 4 ++-- _js/examples/timer.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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\
\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\