{"action":"closed","number":9,"pull_request":{"url":"https://api.github.com/repos/TooTallNate/keypress/pulls/9","id":16990299,"html_url":"https://github.com/TooTallNate/keypress/pull/9","diff_url":"https://github.com/TooTallNate/keypress/pull/9.diff","patch_url":"https://github.com/TooTallNate/keypress/pull/9.patch","issue_url":"https://api.github.com/repos/TooTallNate/keypress/issues/9","number":9,"state":"closed","locked":false,"title":"api: provide an api `.fire()` to remove related event from stream","user":{"login":"yorkie","id":1935767,"avatar_url":"https://avatars.githubusercontent.com/u/1935767?v=3","gravatar_id":"","url":"https://api.github.com/users/yorkie","html_url":"https://github.com/yorkie","followers_url":"https://api.github.com/users/yorkie/followers","following_url":"https://api.github.com/users/yorkie/following{/other_user}","gists_url":"https://api.github.com/users/yorkie/gists{/gist_id}","starred_url":"https://api.github.com/users/yorkie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yorkie/subscriptions","organizations_url":"https://api.github.com/users/yorkie/orgs","repos_url":"https://api.github.com/users/yorkie/repos","events_url":"https://api.github.com/users/yorkie/events{/privacy}","received_events_url":"https://api.github.com/users/yorkie/received_events","type":"User","site_admin":false},"body":"See the title of this PR, I did:\r\n\r\n##### 1. add `.fire()`\r\nthis call `removeListener()` to our `onData`/`onNewListener` functions for user, and if user has a specific call to `enableMouse`, it would call `disableMouse()`.\r\n\r\n##### 2. remove some unnecessary calls at user-land\r\nfor example: user don't need write this:\r\n```js\r\nprocess.on('exit', function() {\r\n  keypress.disableMouse();\r\n});\r\n```\r\n\r\nAll what I did just fix some memory leaks on `EventEmitter`.\r\nPS: This module is very awesome, thank you so much :)\r\n","created_at":"2014-06-11T10:37:51Z","updated_at":"2015-08-26T15:12:08Z","closed_at":"2015-08-26T15:12:08Z","merged_at":null,"merge_commit_sha":"1d1161027fc5d2e56c7e3ce0118f377517f2d862","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/TooTallNate/keypress/pulls/9/commits","review_comments_url":"https://api.github.com/repos/TooTallNate/keypress/pulls/9/comments","review_comment_url":"https://api.github.com/repos/TooTallNate/keypress/pulls/comments{/number}","comments_url":"https://api.github.com/repos/TooTallNate/keypress/issues/9/comments","statuses_url":"https://api.github.com/repos/TooTallNate/keypress/statuses/b432c0eb7a7d85a890eeb8a8f4b2ed0eb4b605d3","head":{"label":"yorkie:impr","ref":"impr","sha":"b432c0eb7a7d85a890eeb8a8f4b2ed0eb4b605d3","user":{"login":"yorkie","id":1935767,"avatar_url":"https://avatars.githubusercontent.com/u/1935767?v=3","gravatar_id":"","url":"https://api.github.com/users/yorkie","html_url":"https://github.com/yorkie","followers_url":"https://api.github.com/users/yorkie/followers","following_url":"https://api.github.com/users/yorkie/following{/other_user}","gists_url":"https://api.github.com/users/yorkie/gists{/gist_id}","starred_url":"https://api.github.com/users/yorkie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yorkie/subscriptions","organizations_url":"https://api.github.com/users/yorkie/orgs","repos_url":"https://api.github.com/users/yorkie/repos","events_url":"https://api.github.com/users/yorkie/events{/privacy}","received_events_url":"https://api.github.com/users/yorkie/received_events","type":"User","site_admin":false},"repo":{"id":20720793,"name":"keypress","full_name":"yorkie/keypress","owner":{"login":"yorkie","id":1935767,"avatar_url":"https://avatars.githubusercontent.com/u/1935767?v=3","gravatar_id":"","url":"https://api.github.com/users/yorkie","html_url":"https://github.com/yorkie","followers_url":"https://api.github.com/users/yorkie/followers","following_url":"https://api.github.com/users/yorkie/following{/other_user}","gists_url":"https://api.github.com/users/yorkie/gists{/gist_id}","starred_url":"https://api.github.com/users/yorkie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yorkie/subscriptions","organizations_url":"https://api.github.com/users/yorkie/orgs","repos_url":"https://api.github.com/users/yorkie/repos","events_url":"https://api.github.com/users/yorkie/events{/privacy}","received_events_url":"https://api.github.com/users/yorkie/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yorkie/keypress","description":"Make any Node ReadableStream emit \"keypress\" events","fork":true,"url":"https://api.github.com/repos/yorkie/keypress","forks_url":"https://api.github.com/repos/yorkie/keypress/forks","keys_url":"https://api.github.com/repos/yorkie/keypress/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yorkie/keypress/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yorkie/keypress/teams","hooks_url":"https://api.github.com/repos/yorkie/keypress/hooks","issue_events_url":"https://api.github.com/repos/yorkie/keypress/issues/events{/number}","events_url":"https://api.github.com/repos/yorkie/keypress/events","assignees_url":"https://api.github.com/repos/yorkie/keypress/assignees{/user}","branches_url":"https://api.github.com/repos/yorkie/keypress/branches{/branch}","tags_url":"https://api.github.com/repos/yorkie/keypress/tags","blobs_url":"https://api.github.com/repos/yorkie/keypress/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yorkie/keypress/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yorkie/keypress/git/refs{/sha}","trees_url":"https://api.github.com/repos/yorkie/keypress/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yorkie/keypress/statuses/{sha}","languages_url":"https://api.github.com/repos/yorkie/keypress/languages","stargazers_url":"https://api.github.com/repos/yorkie/keypress/stargazers","contributors_url":"https://api.github.com/repos/yorkie/keypress/contributors","subscribers_url":"https://api.github.com/repos/yorkie/keypress/subscribers","subscription_url":"https://api.github.com/repos/yorkie/keypress/subscription","commits_url":"https://api.github.com/repos/yorkie/keypress/commits{/sha}","git_commits_url":"https://api.github.com/repos/yorkie/keypress/git/commits{/sha}","comments_url":"https://api.github.com/repos/yorkie/keypress/comments{/number}","issue_comment_url":"https://api.github.com/repos/yorkie/keypress/issues/comments{/number}","contents_url":"https://api.github.com/repos/yorkie/keypress/contents/{+path}","compare_url":"https://api.github.com/repos/yorkie/keypress/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yorkie/keypress/merges","archive_url":"https://api.github.com/repos/yorkie/keypress/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yorkie/keypress/downloads","issues_url":"https://api.github.com/repos/yorkie/keypress/issues{/number}","pulls_url":"https://api.github.com/repos/yorkie/keypress/pulls{/number}","milestones_url":"https://api.github.com/repos/yorkie/keypress/milestones{/number}","notifications_url":"https://api.github.com/repos/yorkie/keypress/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yorkie/keypress/labels{/name}","releases_url":"https://api.github.com/repos/yorkie/keypress/releases{/id}","created_at":"2014-06-11T10:07:50Z","updated_at":"2014-06-11T10:37:51Z","pushed_at":"2014-06-11T10:28:25Z","git_url":"git://github.com/yorkie/keypress.git","ssh_url":"git@github.com:yorkie/keypress.git","clone_url":"https://github.com/yorkie/keypress.git","svn_url":"https://github.com/yorkie/keypress","homepage":null,"size":128,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"TooTallNate:master","ref":"master","sha":"b40b872e9fda46696a2f10d232d1a39c0ad4eaa0","user":{"login":"TooTallNate","id":71256,"avatar_url":"https://avatars.githubusercontent.com/u/71256?v=3","gravatar_id":"","url":"https://api.github.com/users/TooTallNate","html_url":"https://github.com/TooTallNate","followers_url":"https://api.github.com/users/TooTallNate/followers","following_url":"https://api.github.com/users/TooTallNate/following{/other_user}","gists_url":"https://api.github.com/users/TooTallNate/gists{/gist_id}","starred_url":"https://api.github.com/users/TooTallNate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TooTallNate/subscriptions","organizations_url":"https://api.github.com/users/TooTallNate/orgs","repos_url":"https://api.github.com/users/TooTallNate/repos","events_url":"https://api.github.com/users/TooTallNate/events{/privacy}","received_events_url":"https://api.github.com/users/TooTallNate/received_events","type":"User","site_admin":false},"repo":{"id":4931735,"name":"keypress","full_name":"TooTallNate/keypress","owner":{"login":"TooTallNate","id":71256,"avatar_url":"https://avatars.githubusercontent.com/u/71256?v=3","gravatar_id":"","url":"https://api.github.com/users/TooTallNate","html_url":"https://github.com/TooTallNate","followers_url":"https://api.github.com/users/TooTallNate/followers","following_url":"https://api.github.com/users/TooTallNate/following{/other_user}","gists_url":"https://api.github.com/users/TooTallNate/gists{/gist_id}","starred_url":"https://api.github.com/users/TooTallNate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TooTallNate/subscriptions","organizations_url":"https://api.github.com/users/TooTallNate/orgs","repos_url":"https://api.github.com/users/TooTallNate/repos","events_url":"https://api.github.com/users/TooTallNate/events{/privacy}","received_events_url":"https://api.github.com/users/TooTallNate/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/TooTallNate/keypress","description":"Make any Node ReadableStream emit \"keypress\" events","fork":false,"url":"https://api.github.com/repos/TooTallNate/keypress","forks_url":"https://api.github.com/repos/TooTallNate/keypress/forks","keys_url":"https://api.github.com/repos/TooTallNate/keypress/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TooTallNate/keypress/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TooTallNate/keypress/teams","hooks_url":"https://api.github.com/repos/TooTallNate/keypress/hooks","issue_events_url":"https://api.github.com/repos/TooTallNate/keypress/issues/events{/number}","events_url":"https://api.github.com/repos/TooTallNate/keypress/events","assignees_url":"https://api.github.com/repos/TooTallNate/keypress/assignees{/user}","branches_url":"https://api.github.com/repos/TooTallNate/keypress/branches{/branch}","tags_url":"https://api.github.com/repos/TooTallNate/keypress/tags","blobs_url":"https://api.github.com/repos/TooTallNate/keypress/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TooTallNate/keypress/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TooTallNate/keypress/git/refs{/sha}","trees_url":"https://api.github.com/repos/TooTallNate/keypress/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TooTallNate/keypress/statuses/{sha}","languages_url":"https://api.github.com/repos/TooTallNate/keypress/languages","stargazers_url":"https://api.github.com/repos/TooTallNate/keypress/stargazers","contributors_url":"https://api.github.com/repos/TooTallNate/keypress/contributors","subscribers_url":"https://api.github.com/repos/TooTallNate/keypress/subscribers","subscription_url":"https://api.github.com/repos/TooTallNate/keypress/subscription","commits_url":"https://api.github.com/repos/TooTallNate/keypress/commits{/sha}","git_commits_url":"https://api.github.com/repos/TooTallNate/keypress/git/commits{/sha}","comments_url":"https://api.github.com/repos/TooTallNate/keypress/comments{/number}","issue_comment_url":"https://api.github.com/repos/TooTallNate/keypress/issues/comments{/number}","contents_url":"https://api.github.com/repos/TooTallNate/keypress/contents/{+path}","compare_url":"https://api.github.com/repos/TooTallNate/keypress/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TooTallNate/keypress/merges","archive_url":"https://api.github.com/repos/TooTallNate/keypress/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TooTallNate/keypress/downloads","issues_url":"https://api.github.com/repos/TooTallNate/keypress/issues{/number}","pulls_url":"https://api.github.com/repos/TooTallNate/keypress/pulls{/number}","milestones_url":"https://api.github.com/repos/TooTallNate/keypress/milestones{/number}","notifications_url":"https://api.github.com/repos/TooTallNate/keypress/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TooTallNate/keypress/labels{/name}","releases_url":"https://api.github.com/repos/TooTallNate/keypress/releases{/id}","created_at":"2012-07-06T22:08:38Z","updated_at":"2015-08-21T18:00:44Z","pushed_at":"2015-01-16T18:16:18Z","git_url":"git://github.com/TooTallNate/keypress.git","ssh_url":"git@github.com:TooTallNate/keypress.git","clone_url":"https://github.com/TooTallNate/keypress.git","svn_url":"https://github.com/TooTallNate/keypress","homepage":null,"size":186,"stargazers_count":150,"watchers_count":150,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":9,"forks":15,"open_issues":9,"watchers":150,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/TooTallNate/keypress/pulls/9"},"html":{"href":"https://github.com/TooTallNate/keypress/pull/9"},"issue":{"href":"https://api.github.com/repos/TooTallNate/keypress/issues/9"},"comments":{"href":"https://api.github.com/repos/TooTallNate/keypress/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/TooTallNate/keypress/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/TooTallNate/keypress/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/TooTallNate/keypress/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/TooTallNate/keypress/statuses/b432c0eb7a7d85a890eeb8a8f4b2ed0eb4b605d3"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":3,"review_comments":0,"commits":1,"additions":28,"deletions":16,"changed_files":4}}