{"comment":{"url":"https://api.github.com/repos/charliehw/brjs/comments/10034408","html_url":"https://github.com/charliehw/brjs/commit/31d1c984e414debf0758ede91c0d9527f739793e#commitcomment-10034408","id":10034408,"user":{"login":"dchambers","id":283294,"avatar_url":"https://avatars.githubusercontent.com/u/283294?v=3","gravatar_id":"","url":"https://api.github.com/users/dchambers","html_url":"https://github.com/dchambers","followers_url":"https://api.github.com/users/dchambers/followers","following_url":"https://api.github.com/users/dchambers/following{/other_user}","gists_url":"https://api.github.com/users/dchambers/gists{/gist_id}","starred_url":"https://api.github.com/users/dchambers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dchambers/subscriptions","organizations_url":"https://api.github.com/users/dchambers/orgs","repos_url":"https://api.github.com/users/dchambers/repos","events_url":"https://api.github.com/users/dchambers/events{/privacy}","received_events_url":"https://api.github.com/users/dchambers/received_events","type":"User","site_admin":false},"position":47,"line":180,"path":"brjs-sdk/sdk/libs/javascript/br-presenter/src/br/presenter/control/datefield/JQueryDatePickerControl.js","commit_id":"31d1c984e414debf0758ede91c0d9527f739793e","created_at":"2015-03-04T17:22:56Z","updated_at":"2015-03-04T17:22:56Z","body":"This method seems suspect for a couple of reasons:\r\n\r\n  1. The method is called `_stopPropagation()` but does not actually appear to prevent any event from being propagated.\r\n  2. The method does send a simulated `click` and `mouseup` event within a `setTimeout()`, which seems like a hack upon a hack.\r\n\r\nThere are probably good reasons for this, but unfortunately I couldn't understand the [link](http://stackoverflow.com/questions/22406505/jquery-ui-datepicker-next-and-prev-buttons-only-have-one-ancestor-e-target-p) you posted either, so could really do with an explanation of what's happening here, and why we're having to resort to trickery.\r\n"}}