{"action":"created","issue":{"url":"https://api.github.com/repos/kentcdodds/es6-todomvc/issues/26","repository_url":"https://api.github.com/repos/kentcdodds/es6-todomvc","labels_url":"https://api.github.com/repos/kentcdodds/es6-todomvc/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/kentcdodds/es6-todomvc/issues/26/comments","events_url":"https://api.github.com/repos/kentcdodds/es6-todomvc/issues/26/events","html_url":"https://github.com/kentcdodds/es6-todomvc/issues/26","id":191335980,"number":26,"title":"$on() Does not allow options param","user":{"login":"Tahseenm","id":8666625,"avatar_url":"https://avatars.githubusercontent.com/u/8666625?v=3","gravatar_id":"","url":"https://api.github.com/users/Tahseenm","html_url":"https://github.com/Tahseenm","followers_url":"https://api.github.com/users/Tahseenm/followers","following_url":"https://api.github.com/users/Tahseenm/following{/other_user}","gists_url":"https://api.github.com/users/Tahseenm/gists{/gist_id}","starred_url":"https://api.github.com/users/Tahseenm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tahseenm/subscriptions","organizations_url":"https://api.github.com/users/Tahseenm/orgs","repos_url":"https://api.github.com/users/Tahseenm/repos","events_url":"https://api.github.com/users/Tahseenm/events{/privacy}","received_events_url":"https://api.github.com/users/Tahseenm/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-23T17:28:44Z","updated_at":"2016-11-23T17:49:20Z","closed_at":"2016-11-23T17:49:20Z","body":"Hi Kent,\r\nThanks for the **awesome** course! Helped me a lot moving from Gulp.\r\nJust noticed $on(elem, type, cb, { once: true }) would not work as expected.\r\n\r\nFuture proof version :+1:\r\n```javascript\r\n/**\r\n * Wrapper for `addEventListener`\r\n *\r\n * @param {HTMLElement} target\r\n * @param {string} eventType\r\n * @param {function} eventHandler\r\n * @param {boolean|Object.<boolean>} options - useCapture OR\r\n * {capture, once, passive}\r\n */\r\nfunction $on(target, eventType, eventHandler, opt = false) {\r\n  target.addEventListener(eventType, eventHandler, opt);\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/kentcdodds/es6-todomvc/issues/comments/262585547","html_url":"https://github.com/kentcdodds/es6-todomvc/issues/26#issuecomment-262585547","issue_url":"https://api.github.com/repos/kentcdodds/es6-todomvc/issues/26","id":262585547,"user":{"login":"kentcdodds","id":1500684,"avatar_url":"https://avatars.githubusercontent.com/u/1500684?v=3","gravatar_id":"","url":"https://api.github.com/users/kentcdodds","html_url":"https://github.com/kentcdodds","followers_url":"https://api.github.com/users/kentcdodds/followers","following_url":"https://api.github.com/users/kentcdodds/following{/other_user}","gists_url":"https://api.github.com/users/kentcdodds/gists{/gist_id}","starred_url":"https://api.github.com/users/kentcdodds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kentcdodds/subscriptions","organizations_url":"https://api.github.com/users/kentcdodds/orgs","repos_url":"https://api.github.com/users/kentcdodds/repos","events_url":"https://api.github.com/users/kentcdodds/events{/privacy}","received_events_url":"https://api.github.com/users/kentcdodds/received_events","type":"User","site_admin":false},"created_at":"2016-11-23T17:49:20Z","updated_at":"2016-11-23T17:49:20Z","body":"Thanks for the feedback! Normally I'd invite you to contribute by [making a PR](http://makeapullrequest.com/), but due to the unique nature of this project and all the lesson/step branches, it's pretty difficult to make changes. Thanks though!"}}
{"actor":{"display_login":"kentcdodds"}}