-
Notifications
You must be signed in to change notification settings - Fork 128
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
toggle pause/resume? #23
Comments
There is no method to toggle the state, since there are two hold states: 'pause' and 'lap'. There is an internal field on the instance object that shows the hold state: inst._hold, but nothing exposed directly. |
What about something like this?
So I'm thinking it only needs to wrap the current methods, and fire them based on |
Or 'toggle' and 'lapToggle' maybe. Yes, toggling based on inst._hold should work. |
Is there a way to toggle state, instead of calling 'pause' or 'resume' alternatively? I want to avoid that logic if possible.
Also, I couldn't find a getter for the current state (paused or not). Is there any? Am I missing something?
I'd like to contribute this
.countdown('toggle')
but my javascriptfoo is really poor and there are no tests.. I'm afraid of breaking something :PThe text was updated successfully, but these errors were encountered: