Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

timeout causes error when noty is already closed #80

Closed
Andrekra opened this Issue Sep 4, 2012 · 2 comments

Comments

4 participants

Andrekra commented Sep 4, 2012

When you give a note a timeout of for ex. 3000 seconds, but you click to close it. The timeout is still run and will cause an error

Uncaught TypeError: Cannot call method 'remove' of null 

I worked around this issue as follows:

if (self.$bar != null) {
    self.$bar.remove();
    self.$bar = null;
}
Contributor

gsaricali commented Oct 5, 2012

This has been fixed with #95

@needim needim closed this Dec 6, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment