{"action":"opened","issue":{"url":"https://api.github.com/repos/bjornd/jvectormap/issues/325","labels_url":"https://api.github.com/repos/bjornd/jvectormap/issues/325/labels{/name}","comments_url":"https://api.github.com/repos/bjornd/jvectormap/issues/325/comments","events_url":"https://api.github.com/repos/bjornd/jvectormap/issues/325/events","html_url":"https://github.com/bjornd/jvectormap/issues/325","id":63768927,"number":325,"title":"[Suggestion] - Delay the \"onMarkerClick\" event triggering","user":{"login":"Ninir","id":855022,"avatar_url":"https://avatars.githubusercontent.com/u/855022?v=3","gravatar_id":"","url":"https://api.github.com/users/Ninir","html_url":"https://github.com/Ninir","followers_url":"https://api.github.com/users/Ninir/followers","following_url":"https://api.github.com/users/Ninir/following{/other_user}","gists_url":"https://api.github.com/users/Ninir/gists{/gist_id}","starred_url":"https://api.github.com/users/Ninir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ninir/subscriptions","organizations_url":"https://api.github.com/users/Ninir/orgs","repos_url":"https://api.github.com/users/Ninir/repos","events_url":"https://api.github.com/users/Ninir/events{/privacy}","received_events_url":"https://api.github.com/users/Ninir/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-23T16:36:00Z","updated_at":"2015-03-23T16:36:00Z","closed_at":null,"body":"As saw in `src/map.js` on line 473:\r\n```javascript\r\nmap.container.trigger(clickEvent, [code]);\r\n```\r\n\r\nthis triggers the click event. However, the element is selected right after on line 480\r\n```javascript\r\nelement.setSelected(!element.isSelected);\r\n```\r\n\r\nThis is kind of odd as the triggering should be made after just to be consistent. What do you think of moving the triggering right after (thus bringing a potential break in some applications), or at least add another event just to handle this case?\r\n\r\n"}}