{"action":"closed","issue":{"url":"https://api.github.com/repos/ben8p/nova-toolkit/issues/5","labels_url":"https://api.github.com/repos/ben8p/nova-toolkit/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/ben8p/nova-toolkit/issues/5/comments","events_url":"https://api.github.com/repos/ben8p/nova-toolkit/issues/5/events","html_url":"https://github.com/ben8p/nova-toolkit/issues/5","id":65958423,"number":5,"title":"implements event","user":{"login":"ben8p","id":3725579,"avatar_url":"https://avatars.githubusercontent.com/u/3725579?v=3","gravatar_id":"","url":"https://api.github.com/users/ben8p","html_url":"https://github.com/ben8p","followers_url":"https://api.github.com/users/ben8p/followers","following_url":"https://api.github.com/users/ben8p/following{/other_user}","gists_url":"https://api.github.com/users/ben8p/gists{/gist_id}","starred_url":"https://api.github.com/users/ben8p/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ben8p/subscriptions","organizations_url":"https://api.github.com/users/ben8p/orgs","repos_url":"https://api.github.com/users/ben8p/repos","events_url":"https://api.github.com/users/ben8p/events{/privacy}","received_events_url":"https://api.github.com/users/ben8p/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ben8p/nova-toolkit/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-02T16:01:08Z","updated_at":"2015-04-08T14:51:19Z","closed_at":"2015-04-08T14:51:19Z","body":"event should use the same interface as publish subscribe.\nFor subscribe:\nwhen('foo').then()\nFor event:\nwhen(target, 'click').then()\nIdeally same when() package handle both\n\nNote: current when() package is a short hand for Promise.resolve thus should be deleted\n\nShould also support event delegation\n\nSould return an object thenable + a cancel method to disconnect\n\nShould support once(target, 'click').then() for disconnecting after after event is received"}}