Skip to content

Conversation

@erkez
Copy link
Contributor

@erkez erkez commented May 18, 2015

The option prevents toasts that are currently open from having duplicates.
Also fixed typo in documentation: extendedTimeOut.

The current preventDuplicates option does not suit my needs. For example, if I displayed a toast after a request error and it timed out, I want the toast to be displayed again if it reoccurs.

The option prevents toasts that are currently open from having duplicates.
Also fixed typo in documentation: extendedTimeOut.
@Foxandxss
Copy link
Owner

Thanks, I will take a look soon.

@Foxandxss Foxandxss closed this in e1bdd4e May 20, 2015
@Foxandxss
Copy link
Owner

I merged it, it was a lovely patch.

@erkez
Copy link
Contributor Author

erkez commented May 20, 2015

Great! Thank you.

@Foxandxss
Copy link
Owner

Re-checking it, I opened #96 .

Is there any reason you created yet another way to track opened toasts? There is a toasts array already.

I will clean up that.

@erkez
Copy link
Contributor Author

erkez commented May 21, 2015

That was intended. The toasts array preserve the order and the object is just an efficient way to check if the toast exists. It could be replaced, but I really don't like the idea of looping an array every time. Of course that for most use cases, the normal amount of open toasts is very small.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants