{"action":"created","issue":{"url":"https://api.github.com/repos/trueadm/inferno/issues/258","repository_url":"https://api.github.com/repos/trueadm/inferno","labels_url":"https://api.github.com/repos/trueadm/inferno/issues/258/labels{/name}","comments_url":"https://api.github.com/repos/trueadm/inferno/issues/258/comments","events_url":"https://api.github.com/repos/trueadm/inferno/issues/258/events","html_url":"https://github.com/trueadm/inferno/issues/258","id":163479487,"number":258,"title":"{ ...props } for event is broken","user":{"login":"vinej","id":3254214,"avatar_url":"https://avatars.githubusercontent.com/u/3254214?v=3","gravatar_id":"","url":"https://api.github.com/users/vinej","html_url":"https://github.com/vinej","followers_url":"https://api.github.com/users/vinej/followers","following_url":"https://api.github.com/users/vinej/following{/other_user}","gists_url":"https://api.github.com/users/vinej/gists{/gist_id}","starred_url":"https://api.github.com/users/vinej/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinej/subscriptions","organizations_url":"https://api.github.com/users/vinej/orgs","repos_url":"https://api.github.com/users/vinej/repos","events_url":"https://api.github.com/users/vinej/events{/privacy}","received_events_url":"https://api.github.com/users/vinej/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-01T21:47:24Z","updated_at":"2016-07-01T23:07:40Z","closed_at":null,"body":"The code below is working very well with React, but  with Inferno a have an error into the console instead of the event + 'blur'. If you define an event directly into the tag, it's working, but if you define it with an object it's not working.\r\n\r\n**Uncaught SyntaxError: Unexpected token (    **\r\n\r\nDo you know why ?\r\n\r\nI found this error because I was migrating a small UI library with this kind of definition.\r\nYou can test it with the 'inferno-mobx-starter'. You only have to add the class and modify the todos.js\r\nwith an <**I**nput  type='text'   instead of <input  type='text'. Like that will be able to generate the error into the console. The error is not caused by 'mobx'.\r\n\r\n\r\n```\r\nimport Inferno from 'inferno'\r\nimport InfernoDOM from 'inferno-dom'\r\nimport Component from 'inferno-component'\r\n\r\nclass Input extends Component {\r\n  constructor() {\r\n    super()\r\n    this.handleBlur = this.handleBlur.bind(this)\r\n  }\r\n\r\n  handleBlur(event) {\r\n    console.log(event, \"blur\")\r\n  }\r\n\r\n  render() {\r\n    const props = {\r\n      onBlur : this.handleBlur\r\n    }\r\n\r\n    return (<input { ...props } ></input>)\r\n  }\r\n}\r\n\r\n\r\nInfernoDOM.render(\r\n  <Input />, document.getElementById(\"app\")\r\n)\r\n```"},"comment":{"url":"https://api.github.com/repos/trueadm/inferno/issues/comments/230065567","html_url":"https://github.com/trueadm/inferno/issues/258#issuecomment-230065567","issue_url":"https://api.github.com/repos/trueadm/inferno/issues/258","id":230065567,"user":{"login":"trueadm","id":1519870,"avatar_url":"https://avatars.githubusercontent.com/u/1519870?v=3","gravatar_id":"","url":"https://api.github.com/users/trueadm","html_url":"https://github.com/trueadm","followers_url":"https://api.github.com/users/trueadm/followers","following_url":"https://api.github.com/users/trueadm/following{/other_user}","gists_url":"https://api.github.com/users/trueadm/gists{/gist_id}","starred_url":"https://api.github.com/users/trueadm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trueadm/subscriptions","organizations_url":"https://api.github.com/users/trueadm/orgs","repos_url":"https://api.github.com/users/trueadm/repos","events_url":"https://api.github.com/users/trueadm/events{/privacy}","received_events_url":"https://api.github.com/users/trueadm/received_events","type":"User","site_admin":false},"created_at":"2016-07-01T23:07:40Z","updated_at":"2016-07-01T23:07:40Z","body":"@vinej Thanks for this, I'll aim to get it fixed tomorrow evening and in the `dev` branch :)"}}
{"actor":{"display_login":"trueadm"}}