{"action":"opened","number":177,"pull_request":{"url":"https://api.github.com/repos/angular/zone.js/pulls/177","id":44789882,"html_url":"https://github.com/angular/zone.js/pull/177","diff_url":"https://github.com/angular/zone.js/pull/177.diff","patch_url":"https://github.com/angular/zone.js/pull/177.patch","issue_url":"https://api.github.com/repos/angular/zone.js/issues/177","number":177,"state":"open","locked":false,"title":"EventTarget patch fixes","user":{"login":"matthewjh","id":489010,"avatar_url":"https://avatars.githubusercontent.com/u/489010?v=3","gravatar_id":"","url":"https://api.github.com/users/matthewjh","html_url":"https://github.com/matthewjh","followers_url":"https://api.github.com/users/matthewjh/followers","following_url":"https://api.github.com/users/matthewjh/following{/other_user}","gists_url":"https://api.github.com/users/matthewjh/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewjh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewjh/subscriptions","organizations_url":"https://api.github.com/users/matthewjh/orgs","repos_url":"https://api.github.com/users/matthewjh/repos","events_url":"https://api.github.com/users/matthewjh/events{/privacy}","received_events_url":"https://api.github.com/users/matthewjh/received_events","type":"User","site_admin":false},"body":"Two bugs fixed here, each in a separate commit:\r\n\r\n1. Calling `eventTarget.addEventListener(name, fn)` multiple times with the same `fn` was incorrectly adding a new listener each time. All but the last would be unremovable. Per [the spec](http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-EventTarget-addEventListener), duplicate listeners with the same args should be discarded.\r\n\r\n2. When adding the same listener twice, one with `useCapture=true` and the other with `=false`, per [the spec](http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-EventTarget-addEventListener) each has to be removed separately with its corresponding `useCapture` argument. The zone patch meant that you could remove one but not the other, leaving an event listener than could not be deregistered.\r\n\r\n@vicb @btford \r\n","created_at":"2015-09-11T14:40:07Z","updated_at":"2015-09-11T14:40:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/angular/zone.js/pulls/177/commits","review_comments_url":"https://api.github.com/repos/angular/zone.js/pulls/177/comments","review_comment_url":"https://api.github.com/repos/angular/zone.js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/angular/zone.js/issues/177/comments","statuses_url":"https://api.github.com/repos/angular/zone.js/statuses/c2ec9fddab6f4fb8cc7e98e1813ac2d43f4ae276","head":{"label":"matthewjh:event-target-patch","ref":"event-target-patch","sha":"c2ec9fddab6f4fb8cc7e98e1813ac2d43f4ae276","user":{"login":"matthewjh","id":489010,"avatar_url":"https://avatars.githubusercontent.com/u/489010?v=3","gravatar_id":"","url":"https://api.github.com/users/matthewjh","html_url":"https://github.com/matthewjh","followers_url":"https://api.github.com/users/matthewjh/followers","following_url":"https://api.github.com/users/matthewjh/following{/other_user}","gists_url":"https://api.github.com/users/matthewjh/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewjh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewjh/subscriptions","organizations_url":"https://api.github.com/users/matthewjh/orgs","repos_url":"https://api.github.com/users/matthewjh/repos","events_url":"https://api.github.com/users/matthewjh/events{/privacy}","received_events_url":"https://api.github.com/users/matthewjh/received_events","type":"User","site_admin":false},"repo":{"id":38687361,"name":"zone.js","full_name":"matthewjh/zone.js","owner":{"login":"matthewjh","id":489010,"avatar_url":"https://avatars.githubusercontent.com/u/489010?v=3","gravatar_id":"","url":"https://api.github.com/users/matthewjh","html_url":"https://github.com/matthewjh","followers_url":"https://api.github.com/users/matthewjh/followers","following_url":"https://api.github.com/users/matthewjh/following{/other_user}","gists_url":"https://api.github.com/users/matthewjh/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewjh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewjh/subscriptions","organizations_url":"https://api.github.com/users/matthewjh/orgs","repos_url":"https://api.github.com/users/matthewjh/repos","events_url":"https://api.github.com/users/matthewjh/events{/privacy}","received_events_url":"https://api.github.com/users/matthewjh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/matthewjh/zone.js","description":"Implements Zones for JavaScript","fork":true,"url":"https://api.github.com/repos/matthewjh/zone.js","forks_url":"https://api.github.com/repos/matthewjh/zone.js/forks","keys_url":"https://api.github.com/repos/matthewjh/zone.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/matthewjh/zone.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/matthewjh/zone.js/teams","hooks_url":"https://api.github.com/repos/matthewjh/zone.js/hooks","issue_events_url":"https://api.github.com/repos/matthewjh/zone.js/issues/events{/number}","events_url":"https://api.github.com/repos/matthewjh/zone.js/events","assignees_url":"https://api.github.com/repos/matthewjh/zone.js/assignees{/user}","branches_url":"https://api.github.com/repos/matthewjh/zone.js/branches{/branch}","tags_url":"https://api.github.com/repos/matthewjh/zone.js/tags","blobs_url":"https://api.github.com/repos/matthewjh/zone.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/matthewjh/zone.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/matthewjh/zone.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/matthewjh/zone.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/matthewjh/zone.js/statuses/{sha}","languages_url":"https://api.github.com/repos/matthewjh/zone.js/languages","stargazers_url":"https://api.github.com/repos/matthewjh/zone.js/stargazers","contributors_url":"https://api.github.com/repos/matthewjh/zone.js/contributors","subscribers_url":"https://api.github.com/repos/matthewjh/zone.js/subscribers","subscription_url":"https://api.github.com/repos/matthewjh/zone.js/subscription","commits_url":"https://api.github.com/repos/matthewjh/zone.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/matthewjh/zone.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/matthewjh/zone.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/matthewjh/zone.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/matthewjh/zone.js/contents/{+path}","compare_url":"https://api.github.com/repos/matthewjh/zone.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/matthewjh/zone.js/merges","archive_url":"https://api.github.com/repos/matthewjh/zone.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/matthewjh/zone.js/downloads","issues_url":"https://api.github.com/repos/matthewjh/zone.js/issues{/number}","pulls_url":"https://api.github.com/repos/matthewjh/zone.js/pulls{/number}","milestones_url":"https://api.github.com/repos/matthewjh/zone.js/milestones{/number}","notifications_url":"https://api.github.com/repos/matthewjh/zone.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/matthewjh/zone.js/labels{/name}","releases_url":"https://api.github.com/repos/matthewjh/zone.js/releases{/id}","created_at":"2015-07-07T12:51:02Z","updated_at":"2015-07-07T12:51:02Z","pushed_at":"2015-09-11T13:44:00Z","git_url":"git://github.com/matthewjh/zone.js.git","ssh_url":"git@github.com:matthewjh/zone.js.git","clone_url":"https://github.com/matthewjh/zone.js.git","svn_url":"https://github.com/matthewjh/zone.js","homepage":"https://github.com/angular/zone.js","size":597,"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":"angular:master","ref":"master","sha":"f8a2be5ab889b3026774ea36cea4e385399a52df","user":{"login":"angular","id":139426,"avatar_url":"https://avatars.githubusercontent.com/u/139426?v=3","gravatar_id":"","url":"https://api.github.com/users/angular","html_url":"https://github.com/angular","followers_url":"https://api.github.com/users/angular/followers","following_url":"https://api.github.com/users/angular/following{/other_user}","gists_url":"https://api.github.com/users/angular/gists{/gist_id}","starred_url":"https://api.github.com/users/angular/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angular/subscriptions","organizations_url":"https://api.github.com/users/angular/orgs","repos_url":"https://api.github.com/users/angular/repos","events_url":"https://api.github.com/users/angular/events{/privacy}","received_events_url":"https://api.github.com/users/angular/received_events","type":"Organization","site_admin":false},"repo":{"id":15467734,"name":"zone.js","full_name":"angular/zone.js","owner":{"login":"angular","id":139426,"avatar_url":"https://avatars.githubusercontent.com/u/139426?v=3","gravatar_id":"","url":"https://api.github.com/users/angular","html_url":"https://github.com/angular","followers_url":"https://api.github.com/users/angular/followers","following_url":"https://api.github.com/users/angular/following{/other_user}","gists_url":"https://api.github.com/users/angular/gists{/gist_id}","starred_url":"https://api.github.com/users/angular/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angular/subscriptions","organizations_url":"https://api.github.com/users/angular/orgs","repos_url":"https://api.github.com/users/angular/repos","events_url":"https://api.github.com/users/angular/events{/privacy}","received_events_url":"https://api.github.com/users/angular/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/angular/zone.js","description":"Implements Zones for JavaScript","fork":false,"url":"https://api.github.com/repos/angular/zone.js","forks_url":"https://api.github.com/repos/angular/zone.js/forks","keys_url":"https://api.github.com/repos/angular/zone.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/angular/zone.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/angular/zone.js/teams","hooks_url":"https://api.github.com/repos/angular/zone.js/hooks","issue_events_url":"https://api.github.com/repos/angular/zone.js/issues/events{/number}","events_url":"https://api.github.com/repos/angular/zone.js/events","assignees_url":"https://api.github.com/repos/angular/zone.js/assignees{/user}","branches_url":"https://api.github.com/repos/angular/zone.js/branches{/branch}","tags_url":"https://api.github.com/repos/angular/zone.js/tags","blobs_url":"https://api.github.com/repos/angular/zone.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/angular/zone.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/angular/zone.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/angular/zone.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/angular/zone.js/statuses/{sha}","languages_url":"https://api.github.com/repos/angular/zone.js/languages","stargazers_url":"https://api.github.com/repos/angular/zone.js/stargazers","contributors_url":"https://api.github.com/repos/angular/zone.js/contributors","subscribers_url":"https://api.github.com/repos/angular/zone.js/subscribers","subscription_url":"https://api.github.com/repos/angular/zone.js/subscription","commits_url":"https://api.github.com/repos/angular/zone.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/angular/zone.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/angular/zone.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/angular/zone.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/angular/zone.js/contents/{+path}","compare_url":"https://api.github.com/repos/angular/zone.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/angular/zone.js/merges","archive_url":"https://api.github.com/repos/angular/zone.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/angular/zone.js/downloads","issues_url":"https://api.github.com/repos/angular/zone.js/issues{/number}","pulls_url":"https://api.github.com/repos/angular/zone.js/pulls{/number}","milestones_url":"https://api.github.com/repos/angular/zone.js/milestones{/number}","notifications_url":"https://api.github.com/repos/angular/zone.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/angular/zone.js/labels{/name}","releases_url":"https://api.github.com/repos/angular/zone.js/releases{/id}","created_at":"2013-12-27T06:08:07Z","updated_at":"2015-09-11T00:57:07Z","pushed_at":"2015-09-09T02:33:49Z","git_url":"git://github.com/angular/zone.js.git","ssh_url":"git@github.com:angular/zone.js.git","clone_url":"https://github.com/angular/zone.js.git","svn_url":"https://github.com/angular/zone.js","homepage":"https://github.com/angular/zone.js","size":1716,"stargazers_count":858,"watchers_count":858,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":63,"mirror_url":null,"open_issues_count":47,"forks":63,"open_issues":47,"watchers":858,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/angular/zone.js/pulls/177"},"html":{"href":"https://github.com/angular/zone.js/pull/177"},"issue":{"href":"https://api.github.com/repos/angular/zone.js/issues/177"},"comments":{"href":"https://api.github.com/repos/angular/zone.js/issues/177/comments"},"review_comments":{"href":"https://api.github.com/repos/angular/zone.js/pulls/177/comments"},"review_comment":{"href":"https://api.github.com/repos/angular/zone.js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/angular/zone.js/pulls/177/commits"},"statuses":{"href":"https://api.github.com/repos/angular/zone.js/statuses/c2ec9fddab6f4fb8cc7e98e1813ac2d43f4ae276"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":85,"deletions":6,"changed_files":2}}