{"action":"created","issue":{"url":"https://api.github.com/repos/select2/select2/issues/3616","repository_url":"https://api.github.com/repos/select2/select2","labels_url":"https://api.github.com/repos/select2/select2/issues/3616/labels{/name}","comments_url":"https://api.github.com/repos/select2/select2/issues/3616/comments","events_url":"https://api.github.com/repos/select2/select2/issues/3616/events","html_url":"https://github.com/select2/select2/issues/3616","id":97477539,"number":3616,"title":"ajax.templateSelection() is called twice for every selection event","user":{"login":"renehamburger","id":4340524,"avatar_url":"https://avatars.githubusercontent.com/u/4340524?v=3","gravatar_id":"","url":"https://api.github.com/users/renehamburger","html_url":"https://github.com/renehamburger","followers_url":"https://api.github.com/users/renehamburger/followers","following_url":"https://api.github.com/users/renehamburger/following{/other_user}","gists_url":"https://api.github.com/users/renehamburger/gists{/gist_id}","starred_url":"https://api.github.com/users/renehamburger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/renehamburger/subscriptions","organizations_url":"https://api.github.com/users/renehamburger/orgs","repos_url":"https://api.github.com/users/renehamburger/repos","events_url":"https://api.github.com/users/renehamburger/events{/privacy}","received_events_url":"https://api.github.com/users/renehamburger/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/select2/select2/labels/4.x","name":"4.x","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-27T14:33:37Z","updated_at":"2016-04-13T22:03:39Z","closed_at":null,"body":"This can be reproduced with the ajax example given at https://select2.github.io/examples.html and a breakpoint in `formatRepoSelection()`."},"comment":{"url":"https://api.github.com/repos/select2/select2/issues/comments/209667062","html_url":"https://github.com/select2/select2/issues/3616#issuecomment-209667062","issue_url":"https://api.github.com/repos/select2/select2/issues/3616","id":209667062,"user":{"login":"kevin-brown","id":1991850,"avatar_url":"https://avatars.githubusercontent.com/u/1991850?v=3","gravatar_id":"","url":"https://api.github.com/users/kevin-brown","html_url":"https://github.com/kevin-brown","followers_url":"https://api.github.com/users/kevin-brown/followers","following_url":"https://api.github.com/users/kevin-brown/following{/other_user}","gists_url":"https://api.github.com/users/kevin-brown/gists{/gist_id}","starred_url":"https://api.github.com/users/kevin-brown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevin-brown/subscriptions","organizations_url":"https://api.github.com/users/kevin-brown/orgs","repos_url":"https://api.github.com/users/kevin-brown/repos","events_url":"https://api.github.com/users/kevin-brown/events{/privacy}","received_events_url":"https://api.github.com/users/kevin-brown/received_events","type":"User","site_admin":false},"created_at":"2016-04-13T22:03:39Z","updated_at":"2016-04-13T22:03:39Z","body":"@smoothlikejazz That should only need to be registered once, and I don't believe the ordering matters.\r\n\r\nFeel free to submit a pull request which drops it from the SingleSelection."}}