Skip to content

Commit

Permalink
fix: fix code style flaw.
Browse files Browse the repository at this point in the history
  • Loading branch information
plainheart committed Aug 1, 2020
1 parent 4ca07d9 commit 199b983
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/animation/requestAnimationFrame.ts
Expand Up @@ -5,11 +5,11 @@ let requestAnimationFrame: RequestAnimationFrameType;
requestAnimationFrame = (
typeof window !== 'undefined'
&& (window.requestAnimationFrame && window.requestAnimationFrame.bind(window))
// https://github.com/ecomfe/zrender/issues/189#issuecomment-224919809
|| ((window as any).msRequestAnimationFrame && (window as any).msRequestAnimationFrame.bind(window))
|| (window as any).mozRequestAnimationFrame
|| window.webkitRequestAnimationFrame)
|| function (func: Parameters<RequestAnimationFrameType>[0]): number {
// https://github.com/ecomfe/zrender/issues/189#issuecomment-224919809
|| ((window as any).msRequestAnimationFrame && (window as any).msRequestAnimationFrame.bind(window))
|| (window as any).mozRequestAnimationFrame
|| window.webkitRequestAnimationFrame
) || function (func: Parameters<RequestAnimationFrameType>[0]): number {
return setTimeout(func, 16) as any;
};

Expand Down

0 comments on commit 199b983

Please sign in to comment.