mirror of
https://github.com/fooflington/selfdefined.git
synced 2025-06-12 21:51:40 +00:00
update
This commit is contained in:
25
node_modules/rxjs/_esm2015/scheduler/AnimationFrameScheduler.js
generated
vendored
Normal file
25
node_modules/rxjs/_esm2015/scheduler/AnimationFrameScheduler.js
generated
vendored
Normal file
@ -0,0 +1,25 @@
|
||||
import { AsyncScheduler } from './AsyncScheduler';
|
||||
export class AnimationFrameScheduler extends AsyncScheduler {
|
||||
flush(action) {
|
||||
this.active = true;
|
||||
this.scheduled = undefined;
|
||||
const { actions } = this;
|
||||
let error;
|
||||
let index = -1;
|
||||
let count = actions.length;
|
||||
action = action || actions.shift();
|
||||
do {
|
||||
if (error = action.execute(action.state, action.delay)) {
|
||||
break;
|
||||
}
|
||||
} while (++index < count && (action = actions.shift()));
|
||||
this.active = false;
|
||||
if (error) {
|
||||
while (++index < count && (action = actions.shift())) {
|
||||
action.unsubscribe();
|
||||
}
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=AnimationFrameScheduler.js.map
|
Reference in New Issue
Block a user