{"action":"created","comment":{"url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/pulls/comments/46171537","id":46171537,"diff_hunk":"@@ -20,8 +20,16 @@\n         var head = function(selection) {\n             selection.each(function(model) {\n                 var selection = d3.select(this);\n-\n                 var products = model.products;\n+                var selectedIndex = -1;\n+\n+                for (var i = 0; i < products.length; i++) {","path":"src/assets/js/menu/head.js","position":8,"original_position":8,"commit_id":"f1d28d8757f93c557e9b407d00d066d671b4f6de","original_commit_id":"f1d28d8757f93c557e9b407d00d066d671b4f6de","user":{"login":"Afredon","id":14907010,"avatar_url":"https://avatars.githubusercontent.com/u/14907010?v=3","gravatar_id":"","url":"https://api.github.com/users/Afredon","html_url":"https://github.com/Afredon","followers_url":"https://api.github.com/users/Afredon/followers","following_url":"https://api.github.com/users/Afredon/following{/other_user}","gists_url":"https://api.github.com/users/Afredon/gists{/gist_id}","starred_url":"https://api.github.com/users/Afredon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Afredon/subscriptions","organizations_url":"https://api.github.com/users/Afredon/orgs","repos_url":"https://api.github.com/users/Afredon/repos","events_url":"https://api.github.com/users/Afredon/events{/privacy}","received_events_url":"https://api.github.com/users/Afredon/received_events","type":"User","site_admin":false},"body":"I don't see where selectedIndex is used, which would make irrelevant the best way to calculate it.","created_at":"2015-11-30T17:07:11Z","updated_at":"2015-11-30T17:07:11Z","html_url":"https://github.com/ScottLogic/d3fc-showcase/pull/437#discussion_r46171537","pull_request_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/pulls/437","_links":{"self":{"href":"https://api.github.com/repos/ScottLogic/d3fc-showcase/pulls/comments/46171537"},"html":{"href":"https://github.com/ScottLogic/d3fc-showcase/pull/437#discussion_r46171537"},"pull_request":{"href":"https://api.github.com/repos/ScottLogic/d3fc-showcase/pulls/437"}}},"pull_request":{"url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/pulls/437","id":52147791,"html_url":"https://github.com/ScottLogic/d3fc-showcase/pull/437","diff_url":"https://github.com/ScottLogic/d3fc-showcase/pull/437.diff","patch_url":"https://github.com/ScottLogic/d3fc-showcase/pull/437.patch","issue_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/issues/437","number":437,"state":"open","locked":false,"title":"Added further coinbase products","user":{"login":"rjmcneill","id":10117342,"avatar_url":"https://avatars.githubusercontent.com/u/10117342?v=3","gravatar_id":"","url":"https://api.github.com/users/rjmcneill","html_url":"https://github.com/rjmcneill","followers_url":"https://api.github.com/users/rjmcneill/followers","following_url":"https://api.github.com/users/rjmcneill/following{/other_user}","gists_url":"https://api.github.com/users/rjmcneill/gists{/gist_id}","starred_url":"https://api.github.com/users/rjmcneill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rjmcneill/subscriptions","organizations_url":"https://api.github.com/users/rjmcneill/orgs","repos_url":"https://api.github.com/users/rjmcneill/repos","events_url":"https://api.github.com/users/rjmcneill/events{/privacy}","received_events_url":"https://api.github.com/users/rjmcneill/received_events","type":"User","site_admin":false},"body":"Closes #67 \r\n\r\nAdded WIP tag because it'll need some work when Tom's changes are accepted.","created_at":"2015-11-30T16:42:22Z","updated_at":"2015-11-30T17:07:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b0e179d1def0c4556c1b7f0152c990e48870c939","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/pulls/437/commits","review_comments_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/pulls/437/comments","review_comment_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/issues/437/comments","statuses_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/statuses/f1d28d8757f93c557e9b407d00d066d671b4f6de","head":{"label":"rjmcneill:feature/coinbase-products","ref":"feature/coinbase-products","sha":"f1d28d8757f93c557e9b407d00d066d671b4f6de","user":{"login":"rjmcneill","id":10117342,"avatar_url":"https://avatars.githubusercontent.com/u/10117342?v=3","gravatar_id":"","url":"https://api.github.com/users/rjmcneill","html_url":"https://github.com/rjmcneill","followers_url":"https://api.github.com/users/rjmcneill/followers","following_url":"https://api.github.com/users/rjmcneill/following{/other_user}","gists_url":"https://api.github.com/users/rjmcneill/gists{/gist_id}","starred_url":"https://api.github.com/users/rjmcneill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rjmcneill/subscriptions","organizations_url":"https://api.github.com/users/rjmcneill/orgs","repos_url":"https://api.github.com/users/rjmcneill/repos","events_url":"https://api.github.com/users/rjmcneill/events{/privacy}","received_events_url":"https://api.github.com/users/rjmcneill/received_events","type":"User","site_admin":false},"repo":{"id":44965754,"name":"d3fc-showcase","full_name":"rjmcneill/d3fc-showcase","owner":{"login":"rjmcneill","id":10117342,"avatar_url":"https://avatars.githubusercontent.com/u/10117342?v=3","gravatar_id":"","url":"https://api.github.com/users/rjmcneill","html_url":"https://github.com/rjmcneill","followers_url":"https://api.github.com/users/rjmcneill/followers","following_url":"https://api.github.com/users/rjmcneill/following{/other_user}","gists_url":"https://api.github.com/users/rjmcneill/gists{/gist_id}","starred_url":"https://api.github.com/users/rjmcneill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rjmcneill/subscriptions","organizations_url":"https://api.github.com/users/rjmcneill/orgs","repos_url":"https://api.github.com/users/rjmcneill/repos","events_url":"https://api.github.com/users/rjmcneill/events{/privacy}","received_events_url":"https://api.github.com/users/rjmcneill/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rjmcneill/d3fc-showcase","description":"A cross-platform financial charting application to showcase the functionality of d3fc components.","fork":true,"url":"https://api.github.com/repos/rjmcneill/d3fc-showcase","forks_url":"https://api.github.com/repos/rjmcneill/d3fc-showcase/forks","keys_url":"https://api.github.com/repos/rjmcneill/d3fc-showcase/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rjmcneill/d3fc-showcase/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rjmcneill/d3fc-showcase/teams","hooks_url":"https://api.github.com/repos/rjmcneill/d3fc-showcase/hooks","issue_events_url":"https://api.github.com/repos/rjmcneill/d3fc-showcase/issues/events{/number}","events_url":"https://api.github.com/repos/rjmcneill/d3fc-showcase/events","assignees_url":"https://api.github.com/repos/rjmcneill/d3fc-showcase/assignees{/user}","branches_url":"https://api.github.com/repos/rjmcneill/d3fc-showcase/branches{/branch}","tags_url":"https://api.github.com/repos/rjmcneill/d3fc-showcase/tags","blobs_url":"https://api.github.com/repos/rjmcneill/d3fc-showcase/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rjmcneill/d3fc-showcase/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rjmcneill/d3fc-showcase/git/refs{/sha}","trees_url":"https://api.github.com/repos/rjmcneill/d3fc-showcase/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rjmcneill/d3fc-showcase/statuses/{sha}","languages_url":"https://api.github.com/repos/rjmcneill/d3fc-showcase/languages","stargazers_url":"https://api.github.com/repos/rjmcneill/d3fc-showcase/stargazers","contributors_url":"https://api.github.com/repos/rjmcneill/d3fc-showcase/contributors","subscribers_url":"https://api.github.com/repos/rjmcneill/d3fc-showcase/subscribers","subscription_url":"https://api.github.com/repos/rjmcneill/d3fc-showcase/subscription","commits_url":"https://api.github.com/repos/rjmcneill/d3fc-showcase/commits{/sha}","git_commits_url":"https://api.github.com/repos/rjmcneill/d3fc-showcase/git/commits{/sha}","comments_url":"https://api.github.com/repos/rjmcneill/d3fc-showcase/comments{/number}","issue_comment_url":"https://api.github.com/repos/rjmcneill/d3fc-showcase/issues/comments{/number}","contents_url":"https://api.github.com/repos/rjmcneill/d3fc-showcase/contents/{+path}","compare_url":"https://api.github.com/repos/rjmcneill/d3fc-showcase/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rjmcneill/d3fc-showcase/merges","archive_url":"https://api.github.com/repos/rjmcneill/d3fc-showcase/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rjmcneill/d3fc-showcase/downloads","issues_url":"https://api.github.com/repos/rjmcneill/d3fc-showcase/issues{/number}","pulls_url":"https://api.github.com/repos/rjmcneill/d3fc-showcase/pulls{/number}","milestones_url":"https://api.github.com/repos/rjmcneill/d3fc-showcase/milestones{/number}","notifications_url":"https://api.github.com/repos/rjmcneill/d3fc-showcase/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rjmcneill/d3fc-showcase/labels{/name}","releases_url":"https://api.github.com/repos/rjmcneill/d3fc-showcase/releases{/id}","created_at":"2015-10-26T12:03:38Z","updated_at":"2015-10-26T12:03:38Z","pushed_at":"2015-11-30T16:44:09Z","git_url":"git://github.com/rjmcneill/d3fc-showcase.git","ssh_url":"git@github.com:rjmcneill/d3fc-showcase.git","clone_url":"https://github.com/rjmcneill/d3fc-showcase.git","svn_url":"https://github.com/rjmcneill/d3fc-showcase","homepage":"http://scottlogic.github.io/d3fc-showcase/","size":878,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"ScottLogic:develop","ref":"develop","sha":"a731b13adf57cdfd0266a68d28c848a1afa7b990","user":{"login":"ScottLogic","id":2046037,"avatar_url":"https://avatars.githubusercontent.com/u/2046037?v=3","gravatar_id":"","url":"https://api.github.com/users/ScottLogic","html_url":"https://github.com/ScottLogic","followers_url":"https://api.github.com/users/ScottLogic/followers","following_url":"https://api.github.com/users/ScottLogic/following{/other_user}","gists_url":"https://api.github.com/users/ScottLogic/gists{/gist_id}","starred_url":"https://api.github.com/users/ScottLogic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ScottLogic/subscriptions","organizations_url":"https://api.github.com/users/ScottLogic/orgs","repos_url":"https://api.github.com/users/ScottLogic/repos","events_url":"https://api.github.com/users/ScottLogic/events{/privacy}","received_events_url":"https://api.github.com/users/ScottLogic/received_events","type":"Organization","site_admin":false},"repo":{"id":39064095,"name":"d3fc-showcase","full_name":"ScottLogic/d3fc-showcase","owner":{"login":"ScottLogic","id":2046037,"avatar_url":"https://avatars.githubusercontent.com/u/2046037?v=3","gravatar_id":"","url":"https://api.github.com/users/ScottLogic","html_url":"https://github.com/ScottLogic","followers_url":"https://api.github.com/users/ScottLogic/followers","following_url":"https://api.github.com/users/ScottLogic/following{/other_user}","gists_url":"https://api.github.com/users/ScottLogic/gists{/gist_id}","starred_url":"https://api.github.com/users/ScottLogic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ScottLogic/subscriptions","organizations_url":"https://api.github.com/users/ScottLogic/orgs","repos_url":"https://api.github.com/users/ScottLogic/repos","events_url":"https://api.github.com/users/ScottLogic/events{/privacy}","received_events_url":"https://api.github.com/users/ScottLogic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ScottLogic/d3fc-showcase","description":"A cross-platform financial charting application to showcase the functionality of d3fc components.","fork":false,"url":"https://api.github.com/repos/ScottLogic/d3fc-showcase","forks_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/forks","keys_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/teams","hooks_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/hooks","issue_events_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/issues/events{/number}","events_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/events","assignees_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/assignees{/user}","branches_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/branches{/branch}","tags_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/tags","blobs_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/git/refs{/sha}","trees_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/statuses/{sha}","languages_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/languages","stargazers_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/stargazers","contributors_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/contributors","subscribers_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/subscribers","subscription_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/subscription","commits_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/commits{/sha}","git_commits_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/git/commits{/sha}","comments_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/comments{/number}","issue_comment_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/issues/comments{/number}","contents_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/contents/{+path}","compare_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/merges","archive_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/downloads","issues_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/issues{/number}","pulls_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/pulls{/number}","milestones_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/milestones{/number}","notifications_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/labels{/name}","releases_url":"https://api.github.com/repos/ScottLogic/d3fc-showcase/releases{/id}","created_at":"2015-07-14T08:47:46Z","updated_at":"2015-11-26T15:33:16Z","pushed_at":"2015-11-30T16:42:22Z","git_url":"git://github.com/ScottLogic/d3fc-showcase.git","ssh_url":"git@github.com:ScottLogic/d3fc-showcase.git","clone_url":"https://github.com/ScottLogic/d3fc-showcase.git","svn_url":"https://github.com/ScottLogic/d3fc-showcase","homepage":"http://scottlogic.github.io/d3fc-showcase/","size":1393,"stargazers_count":10,"watchers_count":10,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":8,"mirror_url":null,"open_issues_count":58,"forks":8,"open_issues":58,"watchers":10,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/ScottLogic/d3fc-showcase/pulls/437"},"html":{"href":"https://github.com/ScottLogic/d3fc-showcase/pull/437"},"issue":{"href":"https://api.github.com/repos/ScottLogic/d3fc-showcase/issues/437"},"comments":{"href":"https://api.github.com/repos/ScottLogic/d3fc-showcase/issues/437/comments"},"review_comments":{"href":"https://api.github.com/repos/ScottLogic/d3fc-showcase/pulls/437/comments"},"review_comment":{"href":"https://api.github.com/repos/ScottLogic/d3fc-showcase/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ScottLogic/d3fc-showcase/pulls/437/commits"},"statuses":{"href":"https://api.github.com/repos/ScottLogic/d3fc-showcase/statuses/f1d28d8757f93c557e9b407d00d066d671b4f6de"}}}}