-
Notifications
You must be signed in to change notification settings - Fork 52
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
Suggestion to handle secondsElapsed within this #4
Labels
Comments
Makes good sense. Can you submit a Pull Request with your proposed changes for review? |
It seems submitting a pull request requires me creating a branch first, but I could not figure out how to create a branch, or even if I'm allowed to.
|
Closing as this is addressed in #8. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello John, and thanks for sharing.
After calling countdown.stop(), it is not possible to retrieve the value of the stopped countdown since secondsElapsed is not stored, but always calculated as per current time. I would suggest to handle secondsElapsed within "this". Then update this.secondsElapsed in _draw only, and all other functions in countdown would just take this.secondsElapsed. This would allow to add a function such as:
What do you think ?
The text was updated successfully, but these errors were encountered: