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

app.alert timeout bug #17

Closed
barisusakli opened this issue Jun 20, 2013 · 0 comments
Closed

app.alert timeout bug #17

barisusakli opened this issue Jun 20, 2013 · 0 comments
Assignees
Labels
Milestone

Comments

@barisusakli
Copy link
Member

If an app.alert is made with timeout and alert_id values set, and another timeout is made with the same alert_id, the old setTimeout(); is not cleared to make way for the new timeout, so the alert fades away prematurely.

Reproduction steps

  1. `app.alert({ alert_id: 'foo', timeout: 10000 });
  2. Wait five seconds.
  3. `app.alert({ alert_id: 'foo', timeout: 10000 });
  4. Alert disappears after another five seconds, instead of the expected ten.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants