File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -9,9 +9,7 @@ class Animation extends PureComponent {
99 componentDidMount ( ) {
1010 this . loadAnimation ( this . props ) ;
1111
12- if ( typeof this . props . progress === 'object' &&
13- this . props . progress . _listeners ) {
14-
12+ if ( typeof this . props . progress === 'object' && this . props . progress . _listeners ) {
1513 this . props . progress . addListener ( ( progress ) => {
1614 const { value } = progress ;
1715 let frame = value / ( 1 / this . anim . getDuration ( true ) ) ;
@@ -21,9 +19,8 @@ class Animation extends PureComponent {
2119 }
2220
2321 componentWillUnmount ( ) {
24- if ( typeof this . props . progress === 'object' &&
25- this . props . progress . _listeners ) {
26- this . props . progress . removeAllListeners ( ) ;
22+ if ( typeof this . props . progress === 'object' && this . props . progress . _listeners ) {
23+ this . props . progress . removeAllListeners ( ) ;
2724 }
2825 }
2926
You can’t perform that action at this time.
0 commit comments