animated-transition-group
Advanced tools
Comparing version 1.0.21 to 1.0.22
@@ -35,2 +35,12 @@ 'use strict'; | ||
_createClass(AnimatedChild, [{ | ||
key: 'componentWillMount', | ||
value: function componentWillMount() { | ||
this._mounted = true; | ||
} | ||
}, { | ||
key: 'componentWillUnmount', | ||
value: function componentWillUnmount() { | ||
this._mounted = false; | ||
} | ||
}, { | ||
key: 'prepDefaultProps', | ||
@@ -37,0 +47,0 @@ value: function prepDefaultProps() { |
@@ -20,2 +20,4 @@ 'use strict'; | ||
function addClass(component, className, prefix) { | ||
if (!component._mounted) return; | ||
try { | ||
@@ -36,2 +38,4 @@ // the original CSSTransition group did this (even in componentWillAppear/Enter) | ||
function removeAnimationClasses(component, prefix, appear, enter, leave) { | ||
if (!component._mounted) return; | ||
try { | ||
@@ -38,0 +42,0 @@ // dom node may have been removed if wrapped by an outer animation with a shorter duration (no big deal) |
{ | ||
"name": "animated-transition-group", | ||
"version": "1.0.21", | ||
"version": "1.0.22", | ||
"description": "like `<ReactTransitionGroup />` + callbacks, extras and child-specific customization", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
252915
392