{"action":"created","issue":{"url":"https://api.github.com/repos/dequelabs/react-axe/issues/44","repository_url":"https://api.github.com/repos/dequelabs/react-axe","labels_url":"https://api.github.com/repos/dequelabs/react-axe/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/dequelabs/react-axe/issues/44/comments","events_url":"https://api.github.com/repos/dequelabs/react-axe/issues/44/events","html_url":"https://github.com/dequelabs/react-axe/pull/44","id":342526756,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAyNDA3NDYz","number":44,"title":"FIX: addComponent was getting called for the same component multiple …","user":{"login":"agreene-coursera","id":30501355,"node_id":"MDQ6VXNlcjMwNTAxMzU1","avatar_url":"https://avatars0.githubusercontent.com/u/30501355?v=4","gravatar_id":"","url":"https://api.github.com/users/agreene-coursera","html_url":"https://github.com/agreene-coursera","followers_url":"https://api.github.com/users/agreene-coursera/followers","following_url":"https://api.github.com/users/agreene-coursera/following{/other_user}","gists_url":"https://api.github.com/users/agreene-coursera/gists{/gist_id}","starred_url":"https://api.github.com/users/agreene-coursera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agreene-coursera/subscriptions","organizations_url":"https://api.github.com/users/agreene-coursera/orgs","repos_url":"https://api.github.com/users/agreene-coursera/repos","events_url":"https://api.github.com/users/agreene-coursera/events{/privacy}","received_events_url":"https://api.github.com/users/agreene-coursera/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-07-18T23:31:40Z","updated_at":"2018-08-28T14:55:20Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/dequelabs/react-axe/pulls/44","html_url":"https://github.com/dequelabs/react-axe/pull/44","diff_url":"https://github.com/dequelabs/react-axe/pull/44.diff","patch_url":"https://github.com/dequelabs/react-axe/pull/44.patch"},"body":"…times causing after.js be added many times\r\n\r\nFor some of our components the addComponent function was getting called multiple times. Because of this the after hook would replace the component function with another after hook. This would cause the checkAndReport function to be called many times for the same component and eventually build up to #19. This diff checks to see if we have already added and after hook to the component before we add one.\r\n \r\nCloses issue: #19 \r\n\r\n## Reviewer checks\r\n\r\n**Required fields, to be filled out by PR reviewer(s)**\r\n- [x] Follows the commit message policy, appropriate for next version\r\n- [x] Has documentation updated, a DU ticket, or requires no documentation change\r\n- [x] Includes new tests, or was unnecessary\r\n- [x] Code is reviewed for security by: @dylanb\r\n"},"comment":{"url":"https://api.github.com/repos/dequelabs/react-axe/issues/comments/416617794","html_url":"https://github.com/dequelabs/react-axe/pull/44#issuecomment-416617794","issue_url":"https://api.github.com/repos/dequelabs/react-axe/issues/44","id":416617794,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNjYxNzc5NA==","user":{"login":"dylanb","id":79245,"node_id":"MDQ6VXNlcjc5MjQ1","avatar_url":"https://avatars3.githubusercontent.com/u/79245?v=4","gravatar_id":"","url":"https://api.github.com/users/dylanb","html_url":"https://github.com/dylanb","followers_url":"https://api.github.com/users/dylanb/followers","following_url":"https://api.github.com/users/dylanb/following{/other_user}","gists_url":"https://api.github.com/users/dylanb/gists{/gist_id}","starred_url":"https://api.github.com/users/dylanb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dylanb/subscriptions","organizations_url":"https://api.github.com/users/dylanb/orgs","repos_url":"https://api.github.com/users/dylanb/repos","events_url":"https://api.github.com/users/dylanb/events{/privacy}","received_events_url":"https://api.github.com/users/dylanb/received_events","type":"User","site_admin":false},"created_at":"2018-08-28T14:55:20Z","updated_at":"2018-08-28T14:55:20Z","author_association":"CONTRIBUTOR","body":"@majornista I was doing that yesterday when Github went AWOL"}}
{"actor":{"display_login":"dylanb"}}