Skip to content

Loading…

error in noty when click on it while it animate #108

Closed
kosmom opened this Issue · 1 comment

3 participants

@kosmom

If click on noty while animate - it s no close after that.

@julescopeland

I think this a symptom of a problem that I've discovered...

If a noty is closed whilst animating, it is removed from the queue, even though it is still technically there.

It seems to be a problem with the if statement at the beginning of the close method - the comment says:

// If we are still waiting in the queue just delete from queue

However, the test is for !this.shown - which doesn't get set until the end of the animate function.

It seems that this entire clause can be removed to solve the problem. It's only there for a minor efficiency boost, so shouldn't cause any problems.

@needim needim closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.