{"action":"created","issue":{"url":"https://api.github.com/repos/stefangabos/Zebra_Datepicker/issues/37","labels_url":"https://api.github.com/repos/stefangabos/Zebra_Datepicker/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/stefangabos/Zebra_Datepicker/issues/37/comments","events_url":"https://api.github.com/repos/stefangabos/Zebra_Datepicker/issues/37/events","html_url":"https://github.com/stefangabos/Zebra_Datepicker/issues/37","id":63397136,"number":37,"title":"Triggering a click event on a date option raises error","user":{"login":"wvankuipers","id":3356735,"avatar_url":"https://avatars.githubusercontent.com/u/3356735?v=3","gravatar_id":"","url":"https://api.github.com/users/wvankuipers","html_url":"https://github.com/wvankuipers","followers_url":"https://api.github.com/users/wvankuipers/followers","following_url":"https://api.github.com/users/wvankuipers/following{/other_user}","gists_url":"https://api.github.com/users/wvankuipers/gists{/gist_id}","starred_url":"https://api.github.com/users/wvankuipers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wvankuipers/subscriptions","organizations_url":"https://api.github.com/users/wvankuipers/orgs","repos_url":"https://api.github.com/users/wvankuipers/repos","events_url":"https://api.github.com/users/wvankuipers/events{/privacy}","received_events_url":"https://api.github.com/users/wvankuipers/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-21T11:46:56Z","updated_at":"2015-03-24T08:31:36Z","closed_at":null,"body":"Hi,\r\n\r\nI'm using this plugin for one of my projects and it works perfectly.\r\n\r\nBut now i'm writing some unit tests for the plugin and I found a (possible) problem with the handeling of a click on a date option.\r\n\r\nThe problem can be reproduced as followed:\r\n\r\nOpen the datepicker\r\nSimulate a click on a datepicker option:\r\n\r\n    $('.Zebra_DatePicker .dp_daypicker tbody tr:eq(3) td:first').click();\r\n\r\nThe following Exception wil be raised:\r\n\r\n    Uncaught TypeError: Cannot read property 'match' of undefined - zebra_datepicker.src.js:1172\r\n\r\nThat is correct because of this line from the [jQuery specs](http://api.jquery.com/attr/):\r\n\r\n    As of jQuery 1.6, the .attr() method returns undefined for attributes that have not been set.\r\n\r\nI have created a pull request to fix this issue.\r\n\r\nThank you for the development of this plugin!\r\n\r\nRegards,\r\n\r\nWouter"},"comment":{"url":"https://api.github.com/repos/stefangabos/Zebra_Datepicker/issues/comments/85395866","html_url":"https://github.com/stefangabos/Zebra_Datepicker/issues/37#issuecomment-85395866","issue_url":"https://api.github.com/repos/stefangabos/Zebra_Datepicker/issues/37","id":85395866,"user":{"login":"wvankuipers","id":3356735,"avatar_url":"https://avatars.githubusercontent.com/u/3356735?v=3","gravatar_id":"","url":"https://api.github.com/users/wvankuipers","html_url":"https://github.com/wvankuipers","followers_url":"https://api.github.com/users/wvankuipers/followers","following_url":"https://api.github.com/users/wvankuipers/following{/other_user}","gists_url":"https://api.github.com/users/wvankuipers/gists{/gist_id}","starred_url":"https://api.github.com/users/wvankuipers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wvankuipers/subscriptions","organizations_url":"https://api.github.com/users/wvankuipers/orgs","repos_url":"https://api.github.com/users/wvankuipers/repos","events_url":"https://api.github.com/users/wvankuipers/events{/privacy}","received_events_url":"https://api.github.com/users/wvankuipers/received_events","type":"User","site_admin":false},"created_at":"2015-03-24T08:31:36Z","updated_at":"2015-03-24T08:31:36Z","body":"Hi @kmelia,\r\n\r\nI found the cause of the problem, or the cause why it's a problem during my unit tests.\r\nThe plugin only adds a empty class atr to each date on hover. Since my test does not simulate a hover the class attr is not added, hence the error.\r\n\r\nThe implemented fix that I suggested will resolve this issue, but it seems like a edge case problem.\r\n\r\nRegards,\r\n\r\nWouter "}}