{"action":"created","issue":{"url":"https://api.github.com/repos/acstll/snabbdom-to-html/issues/5","labels_url":"https://api.github.com/repos/acstll/snabbdom-to-html/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/acstll/snabbdom-to-html/issues/5/comments","events_url":"https://api.github.com/repos/acstll/snabbdom-to-html/issues/5/events","html_url":"https://github.com/acstll/snabbdom-to-html/issues/5","id":122508056,"number":5,"title":"Issues when vnode.data is undefined","user":{"login":"TylorS","id":6282473,"avatar_url":"https://avatars.githubusercontent.com/u/6282473?v=3","gravatar_id":"","url":"https://api.github.com/users/TylorS","html_url":"https://github.com/TylorS","followers_url":"https://api.github.com/users/TylorS/followers","following_url":"https://api.github.com/users/TylorS/following{/other_user}","gists_url":"https://api.github.com/users/TylorS/gists{/gist_id}","starred_url":"https://api.github.com/users/TylorS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TylorS/subscriptions","organizations_url":"https://api.github.com/users/TylorS/orgs","repos_url":"https://api.github.com/users/TylorS/repos","events_url":"https://api.github.com/users/TylorS/events{/privacy}","received_events_url":"https://api.github.com/users/TylorS/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-16T13:56:52Z","updated_at":"2015-12-16T14:29:43Z","closed_at":null,"body":"Hello @acstll easy fixes here :+1: \r\n\r\n# Overview\r\nWhen trying to convert snabbdom vnodes to html and vnode.data is undefined 3 separate errors occur.\r\n\r\n1. https://github.com/acstll/snabbdom-to-html/blob/master/modules/attributes.js#L22\r\n  - First complains that there is no `props` on undefined\r\n2. https://github.com/acstll/snabbdom-to-html/blob/master/modules/style.js#L11\r\n  - Next complains that there is no `style` on undefined\r\n3. https://github.com/acstll/snabbdom-to-html/blob/master/init.js#L25\r\n  - Lastly, complains that there is no `ns` on undefined\r\n\r\n# Possible Fix\r\n```js\r\n// easy fix\r\nif (!vnode.data) {\r\n  vnode.data = {}\r\n}\r\n```\r\nOr more checks can be done to ensure other things are not being missed."},"comment":{"url":"https://api.github.com/repos/acstll/snabbdom-to-html/issues/comments/165125937","html_url":"https://github.com/acstll/snabbdom-to-html/issues/5#issuecomment-165125937","issue_url":"https://api.github.com/repos/acstll/snabbdom-to-html/issues/5","id":165125937,"user":{"login":"acstll","id":851105,"avatar_url":"https://avatars.githubusercontent.com/u/851105?v=3","gravatar_id":"","url":"https://api.github.com/users/acstll","html_url":"https://github.com/acstll","followers_url":"https://api.github.com/users/acstll/followers","following_url":"https://api.github.com/users/acstll/following{/other_user}","gists_url":"https://api.github.com/users/acstll/gists{/gist_id}","starred_url":"https://api.github.com/users/acstll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acstll/subscriptions","organizations_url":"https://api.github.com/users/acstll/orgs","repos_url":"https://api.github.com/users/acstll/repos","events_url":"https://api.github.com/users/acstll/events{/privacy}","received_events_url":"https://api.github.com/users/acstll/received_events","type":"User","site_admin":false},"created_at":"2015-12-16T14:29:43Z","updated_at":"2015-12-16T14:29:43Z","body":"hey @TylorS \r\n\r\nThe fix is coming today. :+1: \r\n\r\nI wonder if you're creating vnodes manually, using the `h` function always yields an empty object for `data`."}}