From 03e0ebf5320aa72701e3fb6576b4e1980dda1d63 Mon Sep 17 00:00:00 2001 From: Tony Spiro Date: Fri, 27 Mar 2015 15:17:07 -0500 Subject: [PATCH] Update index.html 'current' makes more sense than 'start' as the value increments passed it's start value. --- examples/transitions/index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/transitions/index.html b/examples/transitions/index.html index 8e40b670be..1fdb68af92 100644 --- a/examples/transitions/index.html +++ b/examples/transitions/index.html @@ -35,7 +35,7 @@ var AnimateDemo = React.createClass({ getInitialState: function() { - return {start: 0}; + return {current: 0}; }, componentDidMount: function() { @@ -47,14 +47,14 @@ }, tick: function() { - this.setState({start: this.state.start + 1}); + this.setState({current: this.state.current + 1}); }, render: function() { var children = []; var pos = 0; var colors = ['red', 'gray', 'blue']; - for (var i = this.state.start; i < this.state.start + 3; i++) { + for (var i = this.state.current; i < this.state.current + 3; i++) { var style = { left: pos * 128, background: colors[i % 3]