{"action":"created","comment":{"url":"https://api.github.com/repos/webpack/webpack.js.org/pulls/comments/216422607","pull_request_review_id":153899640,"id":216422607,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNjQyMjYwNw==","diff_hunk":"@@ -37,18 +39,9 @@ export default class SidebarMobile extends React.Component {\n     );\n   }\n \n-  componentDidMount() {\n-    if (typeof window !== 'undefined') {\n-      window.addEventListener('mousedown', this._handleBodyClick);\n-      // window.addEventListener('touchstart', this._handleBodyClick);\n-    }\n-  }\n-\n-  componentWillUnmount() {\n-    if (typeof window !== 'undefined') {\n-      window.removeEventListener('mousedown', this._handleBodyClick);\n-      // window.removeEventListener('touchstart', this._handleBodyClick);\n-    }\n+  _toggleBodyListener(add) {\n+    let actionName = add ? 'addEventListener' : 'removeEventListener';\n+    window[actionName]('mousedown', this._handleBodyClick);","path":"src/components/SidebarMobile/SidebarMobile.jsx","position":null,"original_position":34,"commit_id":"022c3c11ce515840817e03c2373b631347a77c7f","original_commit_id":"022c3c11ce515840817e03c2373b631347a77c7f","user":{"login":"montogeek","id":1002461,"node_id":"MDQ6VXNlcjEwMDI0NjE=","avatar_url":"https://avatars0.githubusercontent.com/u/1002461?v=4","gravatar_id":"","url":"https://api.github.com/users/montogeek","html_url":"https://github.com/montogeek","followers_url":"https://api.github.com/users/montogeek/followers","following_url":"https://api.github.com/users/montogeek/following{/other_user}","gists_url":"https://api.github.com/users/montogeek/gists{/gist_id}","starred_url":"https://api.github.com/users/montogeek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/montogeek/subscriptions","organizations_url":"https://api.github.com/users/montogeek/orgs","repos_url":"https://api.github.com/users/montogeek/repos","events_url":"https://api.github.com/users/montogeek/events{/privacy}","received_events_url":"https://api.github.com/users/montogeek/received_events","type":"User","site_admin":false},"body":"oh yeah, i was confused with something, nvm","created_at":"2018-09-10T18:15:04Z","updated_at":"2018-09-10T18:15:04Z","html_url":"https://github.com/webpack/webpack.js.org/pull/2429#discussion_r216422607","pull_request_url":"https://api.github.com/repos/webpack/webpack.js.org/pulls/2429","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/webpack/webpack.js.org/pulls/comments/216422607"},"html":{"href":"https://github.com/webpack/webpack.js.org/pull/2429#discussion_r216422607"},"pull_request":{"href":"https://api.github.com/repos/webpack/webpack.js.org/pulls/2429"}},"in_reply_to_id":216412274},"pull_request":{"url":"https://api.github.com/repos/webpack/webpack.js.org/pulls/2429","id":206693223,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA2NjkzMjIz","html_url":"https://github.com/webpack/webpack.js.org/pull/2429","diff_url":"https://github.com/webpack/webpack.js.org/pull/2429.diff","patch_url":"https://github.com/webpack/webpack.js.org/pull/2429.patch","issue_url":"https://api.github.com/repos/webpack/webpack.js.org/issues/2429","number":2429,"state":"open","locked":false,"title":"Rebuild: Make mobile sidebar work again","user":{"login":"Munter","id":331790,"node_id":"MDQ6VXNlcjMzMTc5MA==","avatar_url":"https://avatars1.githubusercontent.com/u/331790?v=4","gravatar_id":"","url":"https://api.github.com/users/Munter","html_url":"https://github.com/Munter","followers_url":"https://api.github.com/users/Munter/followers","following_url":"https://api.github.com/users/Munter/following{/other_user}","gists_url":"https://api.github.com/users/Munter/gists{/gist_id}","starred_url":"https://api.github.com/users/Munter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Munter/subscriptions","organizations_url":"https://api.github.com/users/Munter/orgs","repos_url":"https://api.github.com/users/Munter/repos","events_url":"https://api.github.com/users/Munter/events{/privacy}","received_events_url":"https://api.github.com/users/Munter/received_events","type":"User","site_admin":false},"body":"- Fixed broken urls in section headings\r\n- Fixed active marker of the section and avoided marking a sections index page as active when a sub page was active\r\n- Hooked close button up\r\n- Made drag-to-open work\r\n- Made outside click to close menu work","created_at":"2018-08-07T13:12:28Z","updated_at":"2018-09-10T18:15:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7a632ea6908e75958cc3ffca88605c20a2ebb391","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/webpack/webpack.js.org/pulls/2429/commits","review_comments_url":"https://api.github.com/repos/webpack/webpack.js.org/pulls/2429/comments","review_comment_url":"https://api.github.com/repos/webpack/webpack.js.org/pulls/comments{/number}","comments_url":"https://api.github.com/repos/webpack/webpack.js.org/issues/2429/comments","statuses_url":"https://api.github.com/repos/webpack/webpack.js.org/statuses/022c3c11ce515840817e03c2373b631347a77c7f","head":{"label":"webpack:rebuild-fix-mobile-navigation","ref":"rebuild-fix-mobile-navigation","sha":"022c3c11ce515840817e03c2373b631347a77c7f","user":{"login":"webpack","id":2105791,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIxMDU3OTE=","avatar_url":"https://avatars2.githubusercontent.com/u/2105791?v=4","gravatar_id":"","url":"https://api.github.com/users/webpack","html_url":"https://github.com/webpack","followers_url":"https://api.github.com/users/webpack/followers","following_url":"https://api.github.com/users/webpack/following{/other_user}","gists_url":"https://api.github.com/users/webpack/gists{/gist_id}","starred_url":"https://api.github.com/users/webpack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webpack/subscriptions","organizations_url":"https://api.github.com/users/webpack/orgs","repos_url":"https://api.github.com/users/webpack/repos","events_url":"https://api.github.com/users/webpack/events{/privacy}","received_events_url":"https://api.github.com/users/webpack/received_events","type":"Organization","site_admin":false},"repo":{"id":61886109,"node_id":"MDEwOlJlcG9zaXRvcnk2MTg4NjEwOQ==","name":"webpack.js.org","full_name":"webpack/webpack.js.org","owner":{"login":"webpack","id":2105791,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIxMDU3OTE=","avatar_url":"https://avatars2.githubusercontent.com/u/2105791?v=4","gravatar_id":"","url":"https://api.github.com/users/webpack","html_url":"https://github.com/webpack","followers_url":"https://api.github.com/users/webpack/followers","following_url":"https://api.github.com/users/webpack/following{/other_user}","gists_url":"https://api.github.com/users/webpack/gists{/gist_id}","starred_url":"https://api.github.com/users/webpack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webpack/subscriptions","organizations_url":"https://api.github.com/users/webpack/orgs","repos_url":"https://api.github.com/users/webpack/repos","events_url":"https://api.github.com/users/webpack/events{/privacy}","received_events_url":"https://api.github.com/users/webpack/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/webpack/webpack.js.org","description":"New repository for webpack documentation and more!","fork":false,"url":"https://api.github.com/repos/webpack/webpack.js.org","forks_url":"https://api.github.com/repos/webpack/webpack.js.org/forks","keys_url":"https://api.github.com/repos/webpack/webpack.js.org/keys{/key_id}","collaborators_url":"https://api.github.com/repos/webpack/webpack.js.org/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/webpack/webpack.js.org/teams","hooks_url":"https://api.github.com/repos/webpack/webpack.js.org/hooks","issue_events_url":"https://api.github.com/repos/webpack/webpack.js.org/issues/events{/number}","events_url":"https://api.github.com/repos/webpack/webpack.js.org/events","assignees_url":"https://api.github.com/repos/webpack/webpack.js.org/assignees{/user}","branches_url":"https://api.github.com/repos/webpack/webpack.js.org/branches{/branch}","tags_url":"https://api.github.com/repos/webpack/webpack.js.org/tags","blobs_url":"https://api.github.com/repos/webpack/webpack.js.org/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/webpack/webpack.js.org/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/webpack/webpack.js.org/git/refs{/sha}","trees_url":"https://api.github.com/repos/webpack/webpack.js.org/git/trees{/sha}","statuses_url":"https://api.github.com/repos/webpack/webpack.js.org/statuses/{sha}","languages_url":"https://api.github.com/repos/webpack/webpack.js.org/languages","stargazers_url":"https://api.github.com/repos/webpack/webpack.js.org/stargazers","contributors_url":"https://api.github.com/repos/webpack/webpack.js.org/contributors","subscribers_url":"https://api.github.com/repos/webpack/webpack.js.org/subscribers","subscription_url":"https://api.github.com/repos/webpack/webpack.js.org/subscription","commits_url":"https://api.github.com/repos/webpack/webpack.js.org/commits{/sha}","git_commits_url":"https://api.github.com/repos/webpack/webpack.js.org/git/commits{/sha}","comments_url":"https://api.github.com/repos/webpack/webpack.js.org/comments{/number}","issue_comment_url":"https://api.github.com/repos/webpack/webpack.js.org/issues/comments{/number}","contents_url":"https://api.github.com/repos/webpack/webpack.js.org/contents/{+path}","compare_url":"https://api.github.com/repos/webpack/webpack.js.org/compare/{base}...{head}","merges_url":"https://api.github.com/repos/webpack/webpack.js.org/merges","archive_url":"https://api.github.com/repos/webpack/webpack.js.org/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/webpack/webpack.js.org/downloads","issues_url":"https://api.github.com/repos/webpack/webpack.js.org/issues{/number}","pulls_url":"https://api.github.com/repos/webpack/webpack.js.org/pulls{/number}","milestones_url":"https://api.github.com/repos/webpack/webpack.js.org/milestones{/number}","notifications_url":"https://api.github.com/repos/webpack/webpack.js.org/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/webpack/webpack.js.org/labels{/name}","releases_url":"https://api.github.com/repos/webpack/webpack.js.org/releases{/id}","deployments_url":"https://api.github.com/repos/webpack/webpack.js.org/deployments","created_at":"2016-06-24T13:22:52Z","updated_at":"2018-09-09T12:36:14Z","pushed_at":"2018-09-10T17:39:46Z","git_url":"git://github.com/webpack/webpack.js.org.git","ssh_url":"git@github.com:webpack/webpack.js.org.git","clone_url":"https://github.com/webpack/webpack.js.org.git","svn_url":"https://github.com/webpack/webpack.js.org","homepage":"https://webpack.js.org","size":304298,"stargazers_count":1296,"watchers_count":1296,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":1940,"mirror_url":null,"archived":false,"open_issues_count":153,"license":{"key":"cc-by-4.0","name":"Creative Commons Attribution 4.0","spdx_id":"CC-BY-4.0","url":"https://api.github.com/licenses/cc-by-4.0","node_id":"MDc6TGljZW5zZTI1"},"forks":1940,"open_issues":153,"watchers":1296,"default_branch":"master"}},"base":{"label":"webpack:rebuild","ref":"rebuild","sha":"b5381aaed4509888fe55fb55974fd4446737c1a2","user":{"login":"webpack","id":2105791,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIxMDU3OTE=","avatar_url":"https://avatars2.githubusercontent.com/u/2105791?v=4","gravatar_id":"","url":"https://api.github.com/users/webpack","html_url":"https://github.com/webpack","followers_url":"https://api.github.com/users/webpack/followers","following_url":"https://api.github.com/users/webpack/following{/other_user}","gists_url":"https://api.github.com/users/webpack/gists{/gist_id}","starred_url":"https://api.github.com/users/webpack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webpack/subscriptions","organizations_url":"https://api.github.com/users/webpack/orgs","repos_url":"https://api.github.com/users/webpack/repos","events_url":"https://api.github.com/users/webpack/events{/privacy}","received_events_url":"https://api.github.com/users/webpack/received_events","type":"Organization","site_admin":false},"repo":{"id":61886109,"node_id":"MDEwOlJlcG9zaXRvcnk2MTg4NjEwOQ==","name":"webpack.js.org","full_name":"webpack/webpack.js.org","owner":{"login":"webpack","id":2105791,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIxMDU3OTE=","avatar_url":"https://avatars2.githubusercontent.com/u/2105791?v=4","gravatar_id":"","url":"https://api.github.com/users/webpack","html_url":"https://github.com/webpack","followers_url":"https://api.github.com/users/webpack/followers","following_url":"https://api.github.com/users/webpack/following{/other_user}","gists_url":"https://api.github.com/users/webpack/gists{/gist_id}","starred_url":"https://api.github.com/users/webpack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webpack/subscriptions","organizations_url":"https://api.github.com/users/webpack/orgs","repos_url":"https://api.github.com/users/webpack/repos","events_url":"https://api.github.com/users/webpack/events{/privacy}","received_events_url":"https://api.github.com/users/webpack/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/webpack/webpack.js.org","description":"New repository for webpack documentation and more!","fork":false,"url":"https://api.github.com/repos/webpack/webpack.js.org","forks_url":"https://api.github.com/repos/webpack/webpack.js.org/forks","keys_url":"https://api.github.com/repos/webpack/webpack.js.org/keys{/key_id}","collaborators_url":"https://api.github.com/repos/webpack/webpack.js.org/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/webpack/webpack.js.org/teams","hooks_url":"https://api.github.com/repos/webpack/webpack.js.org/hooks","issue_events_url":"https://api.github.com/repos/webpack/webpack.js.org/issues/events{/number}","events_url":"https://api.github.com/repos/webpack/webpack.js.org/events","assignees_url":"https://api.github.com/repos/webpack/webpack.js.org/assignees{/user}","branches_url":"https://api.github.com/repos/webpack/webpack.js.org/branches{/branch}","tags_url":"https://api.github.com/repos/webpack/webpack.js.org/tags","blobs_url":"https://api.github.com/repos/webpack/webpack.js.org/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/webpack/webpack.js.org/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/webpack/webpack.js.org/git/refs{/sha}","trees_url":"https://api.github.com/repos/webpack/webpack.js.org/git/trees{/sha}","statuses_url":"https://api.github.com/repos/webpack/webpack.js.org/statuses/{sha}","languages_url":"https://api.github.com/repos/webpack/webpack.js.org/languages","stargazers_url":"https://api.github.com/repos/webpack/webpack.js.org/stargazers","contributors_url":"https://api.github.com/repos/webpack/webpack.js.org/contributors","subscribers_url":"https://api.github.com/repos/webpack/webpack.js.org/subscribers","subscription_url":"https://api.github.com/repos/webpack/webpack.js.org/subscription","commits_url":"https://api.github.com/repos/webpack/webpack.js.org/commits{/sha}","git_commits_url":"https://api.github.com/repos/webpack/webpack.js.org/git/commits{/sha}","comments_url":"https://api.github.com/repos/webpack/webpack.js.org/comments{/number}","issue_comment_url":"https://api.github.com/repos/webpack/webpack.js.org/issues/comments{/number}","contents_url":"https://api.github.com/repos/webpack/webpack.js.org/contents/{+path}","compare_url":"https://api.github.com/repos/webpack/webpack.js.org/compare/{base}...{head}","merges_url":"https://api.github.com/repos/webpack/webpack.js.org/merges","archive_url":"https://api.github.com/repos/webpack/webpack.js.org/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/webpack/webpack.js.org/downloads","issues_url":"https://api.github.com/repos/webpack/webpack.js.org/issues{/number}","pulls_url":"https://api.github.com/repos/webpack/webpack.js.org/pulls{/number}","milestones_url":"https://api.github.com/repos/webpack/webpack.js.org/milestones{/number}","notifications_url":"https://api.github.com/repos/webpack/webpack.js.org/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/webpack/webpack.js.org/labels{/name}","releases_url":"https://api.github.com/repos/webpack/webpack.js.org/releases{/id}","deployments_url":"https://api.github.com/repos/webpack/webpack.js.org/deployments","created_at":"2016-06-24T13:22:52Z","updated_at":"2018-09-09T12:36:14Z","pushed_at":"2018-09-10T17:39:46Z","git_url":"git://github.com/webpack/webpack.js.org.git","ssh_url":"git@github.com:webpack/webpack.js.org.git","clone_url":"https://github.com/webpack/webpack.js.org.git","svn_url":"https://github.com/webpack/webpack.js.org","homepage":"https://webpack.js.org","size":304298,"stargazers_count":1296,"watchers_count":1296,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":1940,"mirror_url":null,"archived":false,"open_issues_count":153,"license":{"key":"cc-by-4.0","name":"Creative Commons Attribution 4.0","spdx_id":"CC-BY-4.0","url":"https://api.github.com/licenses/cc-by-4.0","node_id":"MDc6TGljZW5zZTI1"},"forks":1940,"open_issues":153,"watchers":1296,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/webpack/webpack.js.org/pulls/2429"},"html":{"href":"https://github.com/webpack/webpack.js.org/pull/2429"},"issue":{"href":"https://api.github.com/repos/webpack/webpack.js.org/issues/2429"},"comments":{"href":"https://api.github.com/repos/webpack/webpack.js.org/issues/2429/comments"},"review_comments":{"href":"https://api.github.com/repos/webpack/webpack.js.org/pulls/2429/comments"},"review_comment":{"href":"https://api.github.com/repos/webpack/webpack.js.org/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/webpack/webpack.js.org/pulls/2429/commits"},"statuses":{"href":"https://api.github.com/repos/webpack/webpack.js.org/statuses/022c3c11ce515840817e03c2373b631347a77c7f"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"montogeek"}}