{"action":"opened","issue":{"url":"https://api.github.com/repos/acidb/mobiscroll/issues/298","labels_url":"https://api.github.com/repos/acidb/mobiscroll/issues/298/labels{/name}","comments_url":"https://api.github.com/repos/acidb/mobiscroll/issues/298/comments","events_url":"https://api.github.com/repos/acidb/mobiscroll/issues/298/events","html_url":"https://github.com/acidb/mobiscroll/issues/298","id":63714131,"number":298,"title":"Improving the onClose event","user":{"login":"dioslaska","id":324318,"avatar_url":"https://avatars.githubusercontent.com/u/324318?v=3","gravatar_id":"","url":"https://api.github.com/users/dioslaska","html_url":"https://github.com/dioslaska","followers_url":"https://api.github.com/users/dioslaska/followers","following_url":"https://api.github.com/users/dioslaska/following{/other_user}","gists_url":"https://api.github.com/users/dioslaska/gists{/gist_id}","starred_url":"https://api.github.com/users/dioslaska/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dioslaska/subscriptions","organizations_url":"https://api.github.com/users/dioslaska/orgs","repos_url":"https://api.github.com/users/dioslaska/repos","events_url":"https://api.github.com/users/dioslaska/events{/privacy}","received_events_url":"https://api.github.com/users/dioslaska/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/acidb/mobiscroll/labels/core","name":"core","color":"d7e102"},{"url":"https://api.github.com/repos/acidb/mobiscroll/labels/improvement","name":"improvement","color":"e102d8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-23T12:47:17Z","updated_at":"2015-03-23T12:47:17Z","closed_at":null,"body":"Currently the `onClose` event runs before the new value is set. There are situations where the user would like to work with the selected value, regardless if Set or Cancel was set. This cannot be done, because in case of a new selection the value is not yet assigned at the time of the `onClose` event.\r\n\r\nPossible solutions:\r\n\r\n1. Rename the current `onClose` event to `onBeforeClose`. Fire a new event named `onClose` after the value is already set. BRAKES BACKWARD COMPATIBILTY\r\n\r\n2. Create a new event, e.g. `onAfterClose`, which runs after the value is set. Naming is not consistent (e.g. with `onBeforeShow` and `onShow`)."}}