{"action":"created","comment":{"url":"https://api.github.com/repos/LambdaSchool/User-Interface-Project-Week/pulls/comments/235503967","pull_request_review_id":177385804,"id":235503967,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNTUwMzk2Nw==","diff_hunk":"@@ -0,0 +1,49 @@\n+class TabLink {\n+  constructor(link) {\n+    this.link = link;\n+    // dataset numbers 1 - 4\n+    this.linkData = this.link.dataset.tab;\n+\n+    if (this.linkData === '0') {\n+      this.cards = document.querySelector('.content');\n+    } else {\n+      // content by dataset numbers\n+      this.cards = document.querySelectorAll(`.content[data-tab=\"${this.linkData}\"]`);\n+    }\n+\n+    this.cards = Array.from(this.cards).map(cards => new TabCard(cards));\n+\n+    // event listener that calls method\n+    this.link.addEventListener('click', () => {\n+      event.stopPropagation();","path":"js/services.js","position":18,"original_position":18,"commit_id":"d01802323fa6276cab3cb2c44a811087d19bacc3","original_commit_id":"d01802323fa6276cab3cb2c44a811087d19bacc3","user":{"login":"johnoro","id":34101601,"node_id":"MDQ6VXNlcjM0MTAxNjAx","avatar_url":"https://avatars0.githubusercontent.com/u/34101601?v=4","gravatar_id":"","url":"https://api.github.com/users/johnoro","html_url":"https://github.com/johnoro","followers_url":"https://api.github.com/users/johnoro/followers","following_url":"https://api.github.com/users/johnoro/following{/other_user}","gists_url":"https://api.github.com/users/johnoro/gists{/gist_id}","starred_url":"https://api.github.com/users/johnoro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnoro/subscriptions","organizations_url":"https://api.github.com/users/johnoro/orgs","repos_url":"https://api.github.com/users/johnoro/repos","events_url":"https://api.github.com/users/johnoro/events{/privacy}","received_events_url":"https://api.github.com/users/johnoro/received_events","type":"User","site_admin":false},"body":"You should explicitly pass the event here! This works in Chrome because they do some voodoo for you, but it doesn't work in most other browsers (i.e. Firefox). The fix:\r\n```javascript\r\n this.link.addEventListener('click', e => {\r\n  e.stopPropagation();\r\n  // ...\r\n```","created_at":"2018-11-21T18:51:01Z","updated_at":"2018-11-21T18:56:46Z","html_url":"https://github.com/LambdaSchool/User-Interface-Project-Week/pull/401#discussion_r235503967","pull_request_url":"https://api.github.com/repos/LambdaSchool/User-Interface-Project-Week/pulls/401","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/LambdaSchool/User-Interface-Project-Week/pulls/comments/235503967"},"html":{"href":"https://github.com/LambdaSchool/User-Interface-Project-Week/pull/401#discussion_r235503967"},"pull_request":{"href":"https://api.github.com/repos/LambdaSchool/User-Interface-Project-Week/pulls/401"}}},"pull_request":{"url":"https://api.github.com/repos/LambdaSchool/User-Interface-Project-Week/pulls/401","id":219541403,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE5NTQxNDAz","html_url":"https://github.com/LambdaSchool/User-Interface-Project-Week/pull/401","diff_url":"https://github.com/LambdaSchool/User-Interface-Project-Week/pull/401.diff","patch_url":"https://github.com/LambdaSchool/User-Interface-Project-Week/pull/401.patch","issue_url":"https://api.github.com/repos/LambdaSchool/User-Interface-Project-Week/issues/401","number":401,"state":"open","locked":false,"title":"Barbara Hunter","user":{"login":"cmdncode","id":31222286,"node_id":"MDQ6VXNlcjMxMjIyMjg2","avatar_url":"https://avatars2.githubusercontent.com/u/31222286?v=4","gravatar_id":"","url":"https://api.github.com/users/cmdncode","html_url":"https://github.com/cmdncode","followers_url":"https://api.github.com/users/cmdncode/followers","following_url":"https://api.github.com/users/cmdncode/following{/other_user}","gists_url":"https://api.github.com/users/cmdncode/gists{/gist_id}","starred_url":"https://api.github.com/users/cmdncode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmdncode/subscriptions","organizations_url":"https://api.github.com/users/cmdncode/orgs","repos_url":"https://api.github.com/users/cmdncode/repos","events_url":"https://api.github.com/users/cmdncode/events{/privacy}","received_events_url":"https://api.github.com/users/cmdncode/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-10-01T23:03:22Z","updated_at":"2018-11-21T18:56:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2b429adb72717ef153f78faba13cb1705dcd5e95","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/LambdaSchool/User-Interface-Project-Week/pulls/401/commits","review_comments_url":"https://api.github.com/repos/LambdaSchool/User-Interface-Project-Week/pulls/401/comments","review_comment_url":"https://api.github.com/repos/LambdaSchool/User-Interface-Project-Week/pulls/comments{/number}","comments_url":"https://api.github.com/repos/LambdaSchool/User-Interface-Project-Week/issues/401/comments","statuses_url":"https://api.github.com/repos/LambdaSchool/User-Interface-Project-Week/statuses/d01802323fa6276cab3cb2c44a811087d19bacc3","head":{"label":"cmdncode:master","ref":"master","sha":"d01802323fa6276cab3cb2c44a811087d19bacc3","user":{"login":"cmdncode","id":31222286,"node_id":"MDQ6VXNlcjMxMjIyMjg2","avatar_url":"https://avatars2.githubusercontent.com/u/31222286?v=4","gravatar_id":"","url":"https://api.github.com/users/cmdncode","html_url":"https://github.com/cmdncode","followers_url":"https://api.github.com/users/cmdncode/followers","following_url":"https://api.github.com/users/cmdncode/following{/other_user}","gists_url":"https://api.github.com/users/cmdncode/gists{/gist_id}","starred_url":"https://api.github.com/users/cmdncode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmdncode/subscriptions","organizations_url":"https://api.github.com/users/cmdncode/orgs","repos_url":"https://api.github.com/users/cmdncode/repos","events_url":"https://api.github.com/users/cmdncode/events{/privacy}","received_events_url":"https://api.github.com/users/cmdncode/received_events","type":"User","site_admin":false},"repo":{"id":151117941,"node_id":"MDEwOlJlcG9zaXRvcnkxNTExMTc5NDE=","name":"User-Interface-Project-Week","full_name":"cmdncode/User-Interface-Project-Week","private":false,"owner":{"login":"cmdncode","id":31222286,"node_id":"MDQ6VXNlcjMxMjIyMjg2","avatar_url":"https://avatars2.githubusercontent.com/u/31222286?v=4","gravatar_id":"","url":"https://api.github.com/users/cmdncode","html_url":"https://github.com/cmdncode","followers_url":"https://api.github.com/users/cmdncode/followers","following_url":"https://api.github.com/users/cmdncode/following{/other_user}","gists_url":"https://api.github.com/users/cmdncode/gists{/gist_id}","starred_url":"https://api.github.com/users/cmdncode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmdncode/subscriptions","organizations_url":"https://api.github.com/users/cmdncode/orgs","repos_url":"https://api.github.com/users/cmdncode/repos","events_url":"https://api.github.com/users/cmdncode/events{/privacy}","received_events_url":"https://api.github.com/users/cmdncode/received_events","type":"User","site_admin":false},"html_url":"https://github.com/cmdncode/User-Interface-Project-Week","description":"This repo contains the assets and instructions for User Interface Project Week","fork":true,"url":"https://api.github.com/repos/cmdncode/User-Interface-Project-Week","forks_url":"https://api.github.com/repos/cmdncode/User-Interface-Project-Week/forks","keys_url":"https://api.github.com/repos/cmdncode/User-Interface-Project-Week/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cmdncode/User-Interface-Project-Week/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cmdncode/User-Interface-Project-Week/teams","hooks_url":"https://api.github.com/repos/cmdncode/User-Interface-Project-Week/hooks","issue_events_url":"https://api.github.com/repos/cmdncode/User-Interface-Project-Week/issues/events{/number}","events_url":"https://api.github.com/repos/cmdncode/User-Interface-Project-Week/events","assignees_url":"https://api.github.com/repos/cmdncode/User-Interface-Project-Week/assignees{/user}","branches_url":"https://api.github.com/repos/cmdncode/User-Interface-Project-Week/branches{/branch}","tags_url":"https://api.github.com/repos/cmdncode/User-Interface-Project-Week/tags","blobs_url":"https://api.github.com/repos/cmdncode/User-Interface-Project-Week/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cmdncode/User-Interface-Project-Week/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cmdncode/User-Interface-Project-Week/git/refs{/sha}","trees_url":"https://api.github.com/repos/cmdncode/User-Interface-Project-Week/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cmdncode/User-Interface-Project-Week/statuses/{sha}","languages_url":"https://api.github.com/repos/cmdncode/User-Interface-Project-Week/languages","stargazers_url":"https://api.github.com/repos/cmdncode/User-Interface-Project-Week/stargazers","contributors_url":"https://api.github.com/repos/cmdncode/User-Interface-Project-Week/contributors","subscribers_url":"https://api.github.com/repos/cmdncode/User-Interface-Project-Week/subscribers","subscription_url":"https://api.github.com/repos/cmdncode/User-Interface-Project-Week/subscription","commits_url":"https://api.github.com/repos/cmdncode/User-Interface-Project-Week/commits{/sha}","git_commits_url":"https://api.github.com/repos/cmdncode/User-Interface-Project-Week/git/commits{/sha}","comments_url":"https://api.github.com/repos/cmdncode/User-Interface-Project-Week/comments{/number}","issue_comment_url":"https://api.github.com/repos/cmdncode/User-Interface-Project-Week/issues/comments{/number}","contents_url":"https://api.github.com/repos/cmdncode/User-Interface-Project-Week/contents/{+path}","compare_url":"https://api.github.com/repos/cmdncode/User-Interface-Project-Week/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cmdncode/User-Interface-Project-Week/merges","archive_url":"https://api.github.com/repos/cmdncode/User-Interface-Project-Week/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cmdncode/User-Interface-Project-Week/downloads","issues_url":"https://api.github.com/repos/cmdncode/User-Interface-Project-Week/issues{/number}","pulls_url":"https://api.github.com/repos/cmdncode/User-Interface-Project-Week/pulls{/number}","milestones_url":"https://api.github.com/repos/cmdncode/User-Interface-Project-Week/milestones{/number}","notifications_url":"https://api.github.com/repos/cmdncode/User-Interface-Project-Week/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cmdncode/User-Interface-Project-Week/labels{/name}","releases_url":"https://api.github.com/repos/cmdncode/User-Interface-Project-Week/releases{/id}","deployments_url":"https://api.github.com/repos/cmdncode/User-Interface-Project-Week/deployments","created_at":"2018-10-01T16:11:09Z","updated_at":"2018-10-04T20:39:55Z","pushed_at":"2018-10-04T20:39:53Z","git_url":"git://github.com/cmdncode/User-Interface-Project-Week.git","ssh_url":"git@github.com:cmdncode/User-Interface-Project-Week.git","clone_url":"https://github.com/cmdncode/User-Interface-Project-Week.git","svn_url":"https://github.com/cmdncode/User-Interface-Project-Week","homepage":null,"size":18511,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"LambdaSchool:master","ref":"master","sha":"79f23fe9226b78da7407862e5933acededd4708c","user":{"login":"LambdaSchool","id":24780114,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI0NzgwMTE0","avatar_url":"https://avatars1.githubusercontent.com/u/24780114?v=4","gravatar_id":"","url":"https://api.github.com/users/LambdaSchool","html_url":"https://github.com/LambdaSchool","followers_url":"https://api.github.com/users/LambdaSchool/followers","following_url":"https://api.github.com/users/LambdaSchool/following{/other_user}","gists_url":"https://api.github.com/users/LambdaSchool/gists{/gist_id}","starred_url":"https://api.github.com/users/LambdaSchool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LambdaSchool/subscriptions","organizations_url":"https://api.github.com/users/LambdaSchool/orgs","repos_url":"https://api.github.com/users/LambdaSchool/repos","events_url":"https://api.github.com/users/LambdaSchool/events{/privacy}","received_events_url":"https://api.github.com/users/LambdaSchool/received_events","type":"Organization","site_admin":false},"repo":{"id":135877106,"node_id":"MDEwOlJlcG9zaXRvcnkxMzU4NzcxMDY=","name":"User-Interface-Project-Week","full_name":"LambdaSchool/User-Interface-Project-Week","private":false,"owner":{"login":"LambdaSchool","id":24780114,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI0NzgwMTE0","avatar_url":"https://avatars1.githubusercontent.com/u/24780114?v=4","gravatar_id":"","url":"https://api.github.com/users/LambdaSchool","html_url":"https://github.com/LambdaSchool","followers_url":"https://api.github.com/users/LambdaSchool/followers","following_url":"https://api.github.com/users/LambdaSchool/following{/other_user}","gists_url":"https://api.github.com/users/LambdaSchool/gists{/gist_id}","starred_url":"https://api.github.com/users/LambdaSchool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LambdaSchool/subscriptions","organizations_url":"https://api.github.com/users/LambdaSchool/orgs","repos_url":"https://api.github.com/users/LambdaSchool/repos","events_url":"https://api.github.com/users/LambdaSchool/events{/privacy}","received_events_url":"https://api.github.com/users/LambdaSchool/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/LambdaSchool/User-Interface-Project-Week","description":"This repo contains the assets and instructions for User Interface Project Week","fork":false,"url":"https://api.github.com/repos/LambdaSchool/User-Interface-Project-Week","forks_url":"https://api.github.com/repos/LambdaSchool/User-Interface-Project-Week/forks","keys_url":"https://api.github.com/repos/LambdaSchool/User-Interface-Project-Week/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LambdaSchool/User-Interface-Project-Week/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LambdaSchool/User-Interface-Project-Week/teams","hooks_url":"https://api.github.com/repos/LambdaSchool/User-Interface-Project-Week/hooks","issue_events_url":"https://api.github.com/repos/LambdaSchool/User-Interface-Project-Week/issues/events{/number}","events_url":"https://api.github.com/repos/LambdaSchool/User-Interface-Project-Week/events","assignees_url":"https://api.github.com/repos/LambdaSchool/User-Interface-Project-Week/assignees{/user}","branches_url":"https://api.github.com/repos/LambdaSchool/User-Interface-Project-Week/branches{/branch}","tags_url":"https://api.github.com/repos/LambdaSchool/User-Interface-Project-Week/tags","blobs_url":"https://api.github.com/repos/LambdaSchool/User-Interface-Project-Week/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LambdaSchool/User-Interface-Project-Week/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LambdaSchool/User-Interface-Project-Week/git/refs{/sha}","trees_url":"https://api.github.com/repos/LambdaSchool/User-Interface-Project-Week/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LambdaSchool/User-Interface-Project-Week/statuses/{sha}","languages_url":"https://api.github.com/repos/LambdaSchool/User-Interface-Project-Week/languages","stargazers_url":"https://api.github.com/repos/LambdaSchool/User-Interface-Project-Week/stargazers","contributors_url":"https://api.github.com/repos/LambdaSchool/User-Interface-Project-Week/contributors","subscribers_url":"https://api.github.com/repos/LambdaSchool/User-Interface-Project-Week/subscribers","subscription_url":"https://api.github.com/repos/LambdaSchool/User-Interface-Project-Week/subscription","commits_url":"https://api.github.com/repos/LambdaSchool/User-Interface-Project-Week/commits{/sha}","git_commits_url":"https://api.github.com/repos/LambdaSchool/User-Interface-Project-Week/git/commits{/sha}","comments_url":"https://api.github.com/repos/LambdaSchool/User-Interface-Project-Week/comments{/number}","issue_comment_url":"https://api.github.com/repos/LambdaSchool/User-Interface-Project-Week/issues/comments{/number}","contents_url":"https://api.github.com/repos/LambdaSchool/User-Interface-Project-Week/contents/{+path}","compare_url":"https://api.github.com/repos/LambdaSchool/User-Interface-Project-Week/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LambdaSchool/User-Interface-Project-Week/merges","archive_url":"https://api.github.com/repos/LambdaSchool/User-Interface-Project-Week/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LambdaSchool/User-Interface-Project-Week/downloads","issues_url":"https://api.github.com/repos/LambdaSchool/User-Interface-Project-Week/issues{/number}","pulls_url":"https://api.github.com/repos/LambdaSchool/User-Interface-Project-Week/pulls{/number}","milestones_url":"https://api.github.com/repos/LambdaSchool/User-Interface-Project-Week/milestones{/number}","notifications_url":"https://api.github.com/repos/LambdaSchool/User-Interface-Project-Week/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LambdaSchool/User-Interface-Project-Week/labels{/name}","releases_url":"https://api.github.com/repos/LambdaSchool/User-Interface-Project-Week/releases{/id}","deployments_url":"https://api.github.com/repos/LambdaSchool/User-Interface-Project-Week/deployments","created_at":"2018-06-03T05:45:24Z","updated_at":"2018-11-12T15:05:26Z","pushed_at":"2018-11-21T17:07:39Z","git_url":"git://github.com/LambdaSchool/User-Interface-Project-Week.git","ssh_url":"git@github.com:LambdaSchool/User-Interface-Project-Week.git","clone_url":"https://github.com/LambdaSchool/User-Interface-Project-Week.git","svn_url":"https://github.com/LambdaSchool/User-Interface-Project-Week","homepage":null,"size":17758,"stargazers_count":7,"watchers_count":7,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":481,"mirror_url":null,"archived":false,"open_issues_count":478,"license":null,"forks":481,"open_issues":478,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/LambdaSchool/User-Interface-Project-Week/pulls/401"},"html":{"href":"https://github.com/LambdaSchool/User-Interface-Project-Week/pull/401"},"issue":{"href":"https://api.github.com/repos/LambdaSchool/User-Interface-Project-Week/issues/401"},"comments":{"href":"https://api.github.com/repos/LambdaSchool/User-Interface-Project-Week/issues/401/comments"},"review_comments":{"href":"https://api.github.com/repos/LambdaSchool/User-Interface-Project-Week/pulls/401/comments"},"review_comment":{"href":"https://api.github.com/repos/LambdaSchool/User-Interface-Project-Week/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/LambdaSchool/User-Interface-Project-Week/pulls/401/commits"},"statuses":{"href":"https://api.github.com/repos/LambdaSchool/User-Interface-Project-Week/statuses/d01802323fa6276cab3cb2c44a811087d19bacc3"}},"author_association":"NONE"}}
{"actor":{"display_login":"johnoro"}}