Skip to content

Commit

Permalink
Add displayName to ReactTransitionGroup + friends
Browse files Browse the repository at this point in the history
Fixes facebook/react-devtools#42.

Test Plan: Crossed fingers.
  • Loading branch information
sophiebits committed Jul 8, 2014
1 parent a02b6b3 commit 734a345
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/addons/transitions/ReactCSSTransitionGroup.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ var ReactTransitionGroup = require('ReactTransitionGroup');
var ReactCSSTransitionGroupChild = require('ReactCSSTransitionGroupChild');

var ReactCSSTransitionGroup = React.createClass({
displayName: 'ReactCSSTransitionGroup',

propTypes: {
transitionName: React.PropTypes.string.isRequired,
transitionEnter: React.PropTypes.bool,
Expand Down
2 changes: 2 additions & 0 deletions src/addons/transitions/ReactCSSTransitionGroupChild.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ if (__DEV__) {
}

var ReactCSSTransitionGroupChild = React.createClass({
displayName: 'ReactCSSTransitionGroupChild',

transition: function(animationType, finishCallback) {
var node = this.getDOMNode();
var className = this.props.name + '-' + animationType;
Expand Down
1 change: 1 addition & 0 deletions src/addons/transitions/ReactTransitionGroup.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ var emptyFunction = require('emptyFunction');
var merge = require('merge');

var ReactTransitionGroup = React.createClass({
displayName: 'ReactTransitionGroup',

propTypes: {
component: React.PropTypes.func,
Expand Down

0 comments on commit 734a345

Please sign in to comment.