@samitouri / QOS-React-2 / commits / 5db3a0e481
Fork 0

The library for web and native user interfaces.

Remove React.autoBind from examples

Paul O’Shannessy committed Jul 16, 2013 at 23:44 UTC 5db3a0e481d0b439ba87321a19d9b7b7b7e1ef15
2 files changed +4 -4
docs/_js/examples/markdown.js
+2 -2
@@ -11,9 +11,9 @@ var MarkdownEditor = React.createClass({\n\
11 getInitialState: function() {\n\
12 return {value: 'Type some *markdown* here!'};\n\
13 },\n\
14 - handleInput: React.autoBind(function() {\n\
14 + handleInput: function() {\n\
15 this.setState({value: this.refs.textarea.getDOMNode().value});\n\
16 - }),\n\
16 + },\n\
17 render: function() {\n\
18 return (\n\
19 <div className=\"MarkdownEditor\">\n\
docs/_js/examples/timer.js
+2 -2
@@ -7,9 +7,9 @@ var Timer = React.createClass({\n\
7 getInitialState: function() {\n\
8 return {secondsElapsed: 0};\n\
9 },\n\
10 - tick: React.autoBind(function() {\n\
10 + tick: function() {\n\
11 this.setState({secondsElapsed: this.state.secondsElapsed + 1});\n\
12 - }),\n\
12 + },\n\
13 componentDidMount: function() {\n\
14 setInterval(this.tick, 1000);\n\
15 },\n\