Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return a requestID from requestAnimationFrame, add cancelAnimationFrame. #878

Merged
merged 1 commit into from
Jun 19, 2013

Conversation

shunter
Copy link
Contributor

@shunter shunter commented Jun 18, 2013

Mentioned by @emackey in a comment on PR #870. Our helper functions should match the standard in features by returning the requestID through, and allowing cancellation of a request. This works even when emulating for legacy browsers because setTimeout / clearTimeout work equivalently.

This makes our shim match the standard implementation in features.
@mramato
Copy link
Contributor

mramato commented Jun 19, 2013

Looks good, tests pass.

mramato added a commit that referenced this pull request Jun 19, 2013
Return a requestID from requestAnimationFrame, add cancelAnimationFrame.
@mramato mramato merged commit d1ee8c8 into master Jun 19, 2013
@mramato mramato deleted the requestAnimationFrame branch June 19, 2013 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants