{"action":"closed","issue":{"url":"https://api.github.com/repos/Serhioromano/bootstrap-tags/issues/5","labels_url":"https://api.github.com/repos/Serhioromano/bootstrap-tags/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/Serhioromano/bootstrap-tags/issues/5/comments","events_url":"https://api.github.com/repos/Serhioromano/bootstrap-tags/issues/5/events","html_url":"https://github.com/Serhioromano/bootstrap-tags/issues/5","id":24400707,"number":5,"title":"Add onDuplicate callback ","user":{"login":"jfposton","id":2175204,"avatar_url":"https://avatars.githubusercontent.com/u/2175204?v=3","gravatar_id":"","url":"https://api.github.com/users/jfposton","html_url":"https://github.com/jfposton","followers_url":"https://api.github.com/users/jfposton/followers","following_url":"https://api.github.com/users/jfposton/following{/other_user}","gists_url":"https://api.github.com/users/jfposton/gists{/gist_id}","starred_url":"https://api.github.com/users/jfposton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfposton/subscriptions","organizations_url":"https://api.github.com/users/jfposton/orgs","repos_url":"https://api.github.com/users/jfposton/repos","events_url":"https://api.github.com/users/jfposton/events{/privacy}","received_events_url":"https://api.github.com/users/jfposton/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2013-12-17T05:22:44Z","updated_at":"2016-01-27T15:18:31Z","closed_at":"2016-01-27T15:18:31Z","body":"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. \r\n\r\nThe onDuplicate callback would either return true or false. If true the duplicate is added if false the tag is not added. \r\n\r\nThe onDuplicate callback would take two parameters, the original tag and the value that would be added if the callback returns true. "}}