{"action":"opened","issue":{"url":"https://api.github.com/repos/eternicode/bootstrap-datepicker/issues/1254","labels_url":"https://api.github.com/repos/eternicode/bootstrap-datepicker/issues/1254/labels{/name}","comments_url":"https://api.github.com/repos/eternicode/bootstrap-datepicker/issues/1254/comments","events_url":"https://api.github.com/repos/eternicode/bootstrap-datepicker/issues/1254/events","html_url":"https://github.com/eternicode/bootstrap-datepicker/issues/1254","id":55801525,"number":1254,"title":"beforeShowDay for disabling dates does not work","user":{"login":"apilavakis","id":1590807,"avatar_url":"https://avatars.githubusercontent.com/u/1590807?v=3","gravatar_id":"","url":"https://api.github.com/users/apilavakis","html_url":"https://github.com/apilavakis","followers_url":"https://api.github.com/users/apilavakis/followers","following_url":"https://api.github.com/users/apilavakis/following{/other_user}","gists_url":"https://api.github.com/users/apilavakis/gists{/gist_id}","starred_url":"https://api.github.com/users/apilavakis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apilavakis/subscriptions","organizations_url":"https://api.github.com/users/apilavakis/orgs","repos_url":"https://api.github.com/users/apilavakis/repos","events_url":"https://api.github.com/users/apilavakis/events{/privacy}","received_events_url":"https://api.github.com/users/apilavakis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-28T19:16:18Z","updated_at":"2015-01-28T19:16:18Z","closed_at":null,"body":"Can someone please tell me why the following does not work?\r\n\r\n        beforeShowDay: function (date) {\r\n            $(disabledDates).each(function () {\r\n                if (this.valueOf() == date.valueOf()) {\r\n                    return false;\r\n                }\r\n            });\r\n\r\n            return;\r\n        }\r\n\r\nwhere disabledDates is an array of date objects.\r\n\r\nIt looks like return false has no effect."}}