{"action":"opened","issue":{"url":"https://api.github.com/repos/lhorie/mithril.js/issues/574","labels_url":"https://api.github.com/repos/lhorie/mithril.js/issues/574/labels{/name}","comments_url":"https://api.github.com/repos/lhorie/mithril.js/issues/574/comments","events_url":"https://api.github.com/repos/lhorie/mithril.js/issues/574/events","html_url":"https://github.com/lhorie/mithril.js/issues/574","id":69898321,"number":574,"title":"Some events cannot be handled","user":{"login":"Naddiseo","id":115951,"avatar_url":"https://avatars.githubusercontent.com/u/115951?v=3","gravatar_id":"","url":"https://api.github.com/users/Naddiseo","html_url":"https://github.com/Naddiseo","followers_url":"https://api.github.com/users/Naddiseo/followers","following_url":"https://api.github.com/users/Naddiseo/following{/other_user}","gists_url":"https://api.github.com/users/Naddiseo/gists{/gist_id}","starred_url":"https://api.github.com/users/Naddiseo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Naddiseo/subscriptions","organizations_url":"https://api.github.com/users/Naddiseo/orgs","repos_url":"https://api.github.com/users/Naddiseo/repos","events_url":"https://api.github.com/users/Naddiseo/events{/privacy}","received_events_url":"https://api.github.com/users/Naddiseo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-21T16:55:56Z","updated_at":"2015-04-21T16:55:56Z","closed_at":null,"body":"Consider the following example:\r\n\r\n```javascript\r\nfunction view(ctrl) {\r\n    return m('div', { ontransitionend : ctrl.transitionFinished.bind(ctrl) });\r\n}\r\n```\r\n\r\nIt will not work since mithril uses the [older way](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#Older_way_to_register_event_listeners) to add events instead of `addEventListener`. I'm assuming this is for performance and compatibility reasons, but it does break the assumption that \"on{eventname}\" is how you register events for a given element."}}