-
-
Notifications
You must be signed in to change notification settings - Fork 86
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
Improve error message when stop is called. #115
Improve error message when stop is called. #115
Conversation
Hi @wparad, sorry for all the trouble you had tracking this down. Thank you for this PR! This all looks pretty good to me. I will test it out and get it released just as soon as I have the time to! |
Awesome to hear. I actually wasn't sure about the _attachment property being passed to the |
Oh, I just realized that this is going to change how tween promises get In that case, I'd like to roll the |
I had to make a few changes to the PR, but I will merge this now. Thank you for the fix @wparad! |
This is in |
This improved error message is great, but I thought it would be perfectly fine to call the stop method while an animation is running without throwing an error. |
You raise a good point @kimmobrunfeldt. It's fair to say that it's not an error to prematurely stop a tween. I like the I don't have much time to do significant development on Shifty at the moment, but I'll think on a more robust API for this and roll that into |
FYI @kimmobrunfeldt @wparad, I just released Shifty |
Spent way to long trying to figure why errors were being thrown. Also helps the myriad of other libraries using shifty:
kimmobrunfeldt/progressbar.js#255