- DomName('Window.cancelAnimationFrame')
Cancels an animation frame request.
Other resources
-
Window.cancelAnimationFrame from MDN.
Source
@DomName('Window.cancelAnimationFrame') void cancelAnimationFrame(int id) { var task = AnimationFrameTask._tasks.remove(id); if (task == null) { // Assume that the animation frame request wasn't intercepted by a zone. _cancelAnimationFrame(id); return; } task.cancel(this); }