File tree 1 file changed +5
-7
lines changed
1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -584,9 +584,9 @@ export default class Backburner {
584
584
585
585
public cancel ( timer ?) {
586
586
cancelCount ++ ;
587
-
587
+
588
588
if ( timer === undefined || timer === null ) { return false ; }
589
-
589
+
590
590
let timerType = typeof timer ;
591
591
if ( timerType === 'number' ) { // we're cancelling a throttle or debounce
592
592
return this . _cancelItem ( timer , this . _throttlers ) || this . _cancelItem ( timer , this . _debouncees ) ;
@@ -713,11 +713,9 @@ export default class Backburner {
713
713
714
714
private _runExpiredTimers ( ) {
715
715
this . _timerTimeoutId = null ;
716
- if ( this . _timers . length > 0 ) {
717
- this . begin ( ) ;
718
- this . _scheduleExpiredTimers ( ) ;
719
- this . end ( ) ;
720
- }
716
+ this . begin ( ) ;
717
+ this . _scheduleExpiredTimers ( ) ;
718
+ this . end ( ) ;
721
719
}
722
720
723
721
private _scheduleExpiredTimers ( ) {
You can’t perform that action at this time.
0 commit comments