Skip to content

Commit

Permalink
Test fix facebook#3
Browse files Browse the repository at this point in the history
  • Loading branch information
Jyrno42 committed Sep 9, 2015
1 parent 862b44b commit 71230a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/docs/10.1-animation.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ var ImageCarousel = React.createClass({

You can disable animating `enter` or `leave` animations if you want. For example, sometimes you may want an `enter` animation and no `leave` animation, but `ReactCSSTransitionGroup` waits for an animation to complete before removing your DOM node. You can add `transitionEnter={false}` or `transitionLeave={false}` props to `ReactCSSTransitionGroup` to disable these animations.

### Notifying parent component about animation end
### Notifying parent component about animation completion

You can add optional props `afterEnter`, `afterLeave` and `afterAppear` to `ReactCSSTransitionGroup` to get notified when certain animations are completed(or the timeout occurs).
These hooks use the following signature: `function (key) {}`.
Expand Down
2 changes: 1 addition & 1 deletion src/addons/transitions/ReactCSSTransitionGroup.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ var ReactCSSTransitionGroup = React.createClass({
var self = this;

return function() {
if (this.props.afterAppear) {
if (self.props.afterAppear) {
self.props.afterAppear(key);
}
};
Expand Down

0 comments on commit 71230a1

Please sign in to comment.