{"action":"created","issue":{"url":"https://api.github.com/repos/gitana/alpaca/issues/343","repository_url":"https://api.github.com/repos/gitana/alpaca","labels_url":"https://api.github.com/repos/gitana/alpaca/issues/343/labels{/name}","comments_url":"https://api.github.com/repos/gitana/alpaca/issues/343/comments","events_url":"https://api.github.com/repos/gitana/alpaca/issues/343/events","html_url":"https://github.com/gitana/alpaca/issues/343","id":130848024,"number":343,"title":"Error when I'm initializing dates","user":{"login":"cagc4","id":6130404,"avatar_url":"https://avatars.githubusercontent.com/u/6130404?v=3","gravatar_id":"","url":"https://api.github.com/users/cagc4","html_url":"https://github.com/cagc4","followers_url":"https://api.github.com/users/cagc4/followers","following_url":"https://api.github.com/users/cagc4/following{/other_user}","gists_url":"https://api.github.com/users/cagc4/gists{/gist_id}","starred_url":"https://api.github.com/users/cagc4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cagc4/subscriptions","organizations_url":"https://api.github.com/users/cagc4/orgs","repos_url":"https://api.github.com/users/cagc4/repos","events_url":"https://api.github.com/users/cagc4/events{/privacy}","received_events_url":"https://api.github.com/users/cagc4/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-02T23:06:06Z","updated_at":"2016-03-04T15:07:18Z","closed_at":"2016-03-04T15:07:18Z","body":"Hello Guys, \r\n\r\nI've the next error.\r\n> Uncaught TypeError: Cannot read property 'date' of undefined **alpaca.min.js:10 **\r\n\r\nI've tried with the  alpaca old version and the error doesn't happen\r\n\r\nThanks for your help\r\n\r\nMy Code:\r\n\r\n<div id=\"field1\"></div>\r\n        <script type=\"text/javascript\">\r\n            $(\"#field1\").alpaca({\r\n            \"data\":{ \r\n                \"Campo1\":\"15/10/01\"\r\n            },    \r\n            \"schema\": {\r\n                \"type\": \"object\",\r\n                \"properties\": {\r\n                    \"Campo1\": {\r\n                     ** \"format\": \"date\"**,\r\n                      \"type\": \"string\",\r\n                      \"required\":true\r\n                    }\r\n                  }\r\n            },\r\n            \"options\": {\r\n                \"renderForm\": true,\r\n                \"fields\": {\r\n                    \"Campo1\": {\r\n                      \"label\": \"Fecha\",\r\n                      \"dateFormat\": \"DD/MM/YY\"\r\n                    }\r\n                }\r\n            },\r\n            \"view\": {\r\n                \"parent\": \"bootstrap-edit-horizontal\"\r\n            }\r\n    });\r\n</script>"},"comment":{"url":"https://api.github.com/repos/gitana/alpaca/issues/comments/192314950","html_url":"https://github.com/gitana/alpaca/issues/343#issuecomment-192314950","issue_url":"https://api.github.com/repos/gitana/alpaca/issues/343","id":192314950,"user":{"login":"uzquiano","id":362824,"avatar_url":"https://avatars.githubusercontent.com/u/362824?v=3","gravatar_id":"","url":"https://api.github.com/users/uzquiano","html_url":"https://github.com/uzquiano","followers_url":"https://api.github.com/users/uzquiano/followers","following_url":"https://api.github.com/users/uzquiano/following{/other_user}","gists_url":"https://api.github.com/users/uzquiano/gists{/gist_id}","starred_url":"https://api.github.com/users/uzquiano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uzquiano/subscriptions","organizations_url":"https://api.github.com/users/uzquiano/orgs","repos_url":"https://api.github.com/users/uzquiano/repos","events_url":"https://api.github.com/users/uzquiano/events{/privacy}","received_events_url":"https://api.github.com/users/uzquiano/received_events","type":"User","site_admin":false},"created_at":"2016-03-04T15:07:18Z","updated_at":"2016-03-04T15:07:18Z","body":"This works when I try it from the alpacajs.org web site.  You can plug this in to any of the examples and run it and it works.  I suspect you're missing a dependency.  Please check your JS includes and compare with the HTML of the alpacajs.org site to see what's missing."}}