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

Add onDuplicate callback #5

Closed
jfposton opened this issue Dec 17, 2013 · 0 comments · Fixed by #6
Closed

Add onDuplicate callback #5

jfposton opened this issue Dec 17, 2013 · 0 comments · Fixed by #6

Comments

@jfposton
Copy link
Contributor

Having an onDuplicate callback would be useful for authors who wanted to have duplicates and/or those who wanted to do some custom action or extra check when a duplicate item is introduced.

The onDuplicate callback would either return true or false. If true the duplicate is added if false the tag is not added.

The onDuplicate callback would take two parameters, the original tag and the value that would be added if the callback returns true.

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 a pull request may close this issue.

2 participants