• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

worktile / slate-angular / 54daccf3-c49a-4012-a48e-4a002457a416

16 Aug 2024 03:03AM UTC coverage: 46.828%. Remained the same
54daccf3-c49a-4012-a48e-4a002457a416

Pull #279

circleci

Maple13
fix(fragment): fix setFragmentData error
Pull Request #279: fix(fragment): fix setFragmentData error

409 of 1075 branches covered (38.05%)

Branch coverage included in aggregate %.

0 of 2 new or added lines in 1 file covered. (0.0%)

1023 of 1983 relevant lines covered (51.59%)

44.31 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

7.69
/packages/src/utils/throttle.ts
1
export const createThrottleRAF = () => {
1✔
2
    let timerId: number | null = null;
×
3
    const throttleRAF = (fn: () => void) => {
×
4
        const scheduleFunc = () => {
×
5
            timerId = requestAnimationFrame(() => {
×
6
                timerId = null;
×
7
                fn();
×
8
            });
9
        };
10
        if (timerId !== null) {
×
11
            cancelAnimationFrame(timerId);
×
12
            timerId = null;
×
13
        }
14
        scheduleFunc();
×
15
    };
16
    return throttleRAF;
×
17
};
18

19
export type ThrottleRAF = (fn: () => void) => void;
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc