{"action":"closed","issue":{"url":"https://api.github.com/repos/tivac/mithril-objectify/issues/35","repository_url":"https://api.github.com/repos/tivac/mithril-objectify","labels_url":"https://api.github.com/repos/tivac/mithril-objectify/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/tivac/mithril-objectify/issues/35/comments","events_url":"https://api.github.com/repos/tivac/mithril-objectify/issues/35/events","html_url":"https://github.com/tivac/mithril-objectify/issues/35","id":154466848,"number":35,"title":"Attributes containing hyphens produces invalid generated code","user":{"login":"mikegleasonjr","id":1644534,"avatar_url":"https://avatars.githubusercontent.com/u/1644534?v=3","gravatar_id":"","url":"https://api.github.com/users/mikegleasonjr","html_url":"https://github.com/mikegleasonjr","followers_url":"https://api.github.com/users/mikegleasonjr/followers","following_url":"https://api.github.com/users/mikegleasonjr/following{/other_user}","gists_url":"https://api.github.com/users/mikegleasonjr/gists{/gist_id}","starred_url":"https://api.github.com/users/mikegleasonjr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikegleasonjr/subscriptions","organizations_url":"https://api.github.com/users/mikegleasonjr/orgs","repos_url":"https://api.github.com/users/mikegleasonjr/repos","events_url":"https://api.github.com/users/mikegleasonjr/events{/privacy}","received_events_url":"https://api.github.com/users/mikegleasonjr/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-12T12:09:54Z","updated_at":"2016-05-12T17:15:22Z","closed_at":"2016-05-12T17:15:22Z","body":"```\r\nm('div', {\r\n  'data-foo': 'bar'\r\n}\r\n```\r\ngenerates\r\n\r\n```\r\nattrs: {\r\n  data-foo: 'bar'\r\n}\r\n```\r\n\r\nWhich breaks...\r\n\r\nEDIT: in the meantime the workaround is to do something like\r\n\r\n```\r\nvar a = {};\r\na['data-foo'] = 'bar';\r\nm('div', a);\r\n```"}}