File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -318,8 +318,8 @@ export class Animation {
318
318
// from an input event, and just having one RAF would have this code
319
319
// run within the same frame as the triggering input event, and the
320
320
// input event probably already did way too much work for one frame
321
- this . _raf ( ( ) => {
322
- this . _raf ( this . _playDomInspect . bind ( this , opts ) ) ;
321
+ this . _raf && this . _raf ( ( ) => {
322
+ this . _raf && this . _raf ( this . _playDomInspect . bind ( this , opts ) ) ;
323
323
} ) ;
324
324
}
325
325
@@ -379,7 +379,7 @@ export class Animation {
379
379
if ( this . _isAsync ) {
380
380
// this animation has a duration so we need another RAF
381
381
// for the CSS TRANSITION properties to kick in
382
- this . _raf ( this . _playToStep . bind ( this , 1 ) ) ;
382
+ this . _raf && this . _raf ( this . _playToStep . bind ( this , 1 ) ) ;
383
383
}
384
384
}
385
385
@@ -921,7 +921,7 @@ export class Animation {
921
921
922
922
// this animation has a duration so we need another RAF
923
923
// for the CSS TRANSITION properties to kick in
924
- this . _raf ( this . _playToStep . bind ( this , stepValue ) ) ;
924
+ this . _raf && this . _raf ( this . _playToStep . bind ( this , stepValue ) ) ;
925
925
}
926
926
}
927
927
You can’t perform that action at this time.
0 commit comments