From a825a2678d7967552cc4495aac4b2b7e04e779d0 Mon Sep 17 00:00:00 2001 From: Chris Sciolla Date: Tue, 19 Aug 2014 20:59:13 -0400 Subject: [PATCH] Update 09.1-animation.md --- docs/09.1-animation.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/09.1-animation.md b/docs/09.1-animation.md index fbf7fc71..df7cfc72 100644 --- a/docs/09.1-animation.md +++ b/docs/09.1-animation.md @@ -88,7 +88,7 @@ You'll notice that when you try to remove an item `ReactCSSTransitionGroup` keep In order for it to apply transitions to its children, the `ReactCSSTransitionGroup` must already be mounted in the DOM. The example below would not work, because the `ReactCSSTransitionGroup` is being mounted along with the new item, instead of the new item being mounted within it. Compare this to the [Getting Started](/docs/docs/09.1-animation.md#getting-started) section above to see the difference. ```javascript{12-14} -render: function() { + render: function() { var items = this.state.items.map(function(item, i) { return (
@@ -97,7 +97,7 @@ render: function() {
); - }.bind(this)); + }, this); return (