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

Add updatePercent(percent) method. #11

Merged
merged 3 commits into from
May 29, 2014
Merged

Conversation

adrien-gueret
Copy link
Contributor

If we want to update the percent value of the circle, we need to create a whole new instance and animation of the circle restarts from 0.
This method allows us to update this value at any moment.
It does not take into account the "duration" option, it's an improvement we could make later if needed :)

(could be a fix for issue #9 )

Move requestAnimationFrame polyfill in order to make it usable
everywhere in the plugin + create new method updatePercent(percent)
@logankoester
Copy link

Haven't tried your patch yet but I'm definitely excited about this getting added. Much needed feature 👍

Because of self._interval, we can't make this polyfill global
Previous fix thrown an "Illegal invocation error"
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.

3 participants