Skip to content
This repository has been archived by the owner on Sep 17, 2019. It is now read-only.

Commit

Permalink
fix(browser): patchTimer cancelAnimationFrame
Browse files Browse the repository at this point in the history
Call cancelAnimationFrame instead of cancelMicroTaskAnimationFrame.

Fixes angular#326 and Leaflet/Leaflet#4588
  • Loading branch information
tom5760 committed May 25, 2016
1 parent 5f366a1 commit 3e360be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/browser/browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const _global = typeof window == 'undefined' ? global : window;
patchTimer(_global, set, clear, 'Timeout');
patchTimer(_global, set, clear, 'Interval');
patchTimer(_global, set, clear, 'Immediate');
patchTimer(_global, 'request', 'cancelMacroTask', 'AnimationFrame');
patchTimer(_global, 'request', 'cancel', 'AnimationFrame');
patchTimer(_global, 'mozRequest', 'mozCancel', 'AnimationFrame');
patchTimer(_global, 'webkitRequest', 'webkitCancel', 'AnimationFrame');

Expand Down

0 comments on commit 3e360be

Please sign in to comment.