{"action":"created","issue":{"url":"https://api.github.com/repos/slamdata/purescript-halogen/issues/16","labels_url":"https://api.github.com/repos/slamdata/purescript-halogen/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/slamdata/purescript-halogen/issues/16/comments","events_url":"https://api.github.com/repos/slamdata/purescript-halogen/issues/16/events","html_url":"https://github.com/slamdata/purescript-halogen/pull/16","id":60272328,"number":16,"title":"Use hooks for events","user":{"login":"paf31","id":630306,"avatar_url":"https://avatars.githubusercontent.com/u/630306?v=3","gravatar_id":"","url":"https://api.github.com/users/paf31","html_url":"https://github.com/paf31","followers_url":"https://api.github.com/users/paf31/followers","following_url":"https://api.github.com/users/paf31/following{/other_user}","gists_url":"https://api.github.com/users/paf31/gists{/gist_id}","starred_url":"https://api.github.com/users/paf31/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paf31/subscriptions","organizations_url":"https://api.github.com/users/paf31/orgs","repos_url":"https://api.github.com/users/paf31/repos","events_url":"https://api.github.com/users/paf31/events{/privacy}","received_events_url":"https://api.github.com/users/paf31/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-08T19:38:29Z","updated_at":"2015-03-08T19:38:50Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/slamdata/purescript-halogen/pulls/16","html_url":"https://github.com/slamdata/purescript-halogen/pull/16","diff_url":"https://github.com/slamdata/purescript-halogen/pull/16.diff","patch_url":"https://github.com/slamdata/purescript-halogen/pull/16.patch"},"body":"This seems to give a nice trade-off between the simplicity of `on*` events, and the efficiency of `dom-delegator`.\r\n\r\nI basically took this straight from @cryogenian's `slamdata` code. It results in a few calls to `{add,remove}EventListener` on each render, but those are pretty much necessary for the reasons explained in #12."},"comment":{"url":"https://api.github.com/repos/slamdata/purescript-halogen/issues/comments/77769753","html_url":"https://github.com/slamdata/purescript-halogen/pull/16#issuecomment-77769753","issue_url":"https://api.github.com/repos/slamdata/purescript-halogen/issues/16","id":77769753,"user":{"login":"paf31","id":630306,"avatar_url":"https://avatars.githubusercontent.com/u/630306?v=3","gravatar_id":"","url":"https://api.github.com/users/paf31","html_url":"https://github.com/paf31","followers_url":"https://api.github.com/users/paf31/followers","following_url":"https://api.github.com/users/paf31/following{/other_user}","gists_url":"https://api.github.com/users/paf31/gists{/gist_id}","starred_url":"https://api.github.com/users/paf31/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paf31/subscriptions","organizations_url":"https://api.github.com/users/paf31/orgs","repos_url":"https://api.github.com/users/paf31/repos","events_url":"https://api.github.com/users/paf31/events{/privacy}","received_events_url":"https://api.github.com/users/paf31/received_events","type":"User","site_admin":false},"created_at":"2015-03-08T19:38:50Z","updated_at":"2015-03-08T19:38:50Z","body":"Resolves #12."}}