{"action":"created","comment":{"url":"https://api.github.com/repos/mesosphere/foosball/pulls/comments/33291226","id":33291226,"diff_hunk":"@@ -1,3 +1,22 @@\n-(function () {\n-    console.log('Hello world!');\n-})();\n+var $ = require('jquery');\n+global.jQuery = $;\n+global.$ = $;\n+\n+var Leaderboard = require('./components/Leaderboard');\n+var UserService = require('./services/UserService');\n+\n+var _users = [];","path":"src/js/main.js","position":11,"original_position":11,"commit_id":"0fbe671d1eed073b3aff98f7bc61925064751c4e","original_commit_id":"0fbe671d1eed073b3aff98f7bc61925064751c4e","user":{"login":"mattnish","id":892867,"avatar_url":"https://avatars.githubusercontent.com/u/892867?v=3","gravatar_id":"","url":"https://api.github.com/users/mattnish","html_url":"https://github.com/mattnish","followers_url":"https://api.github.com/users/mattnish/followers","following_url":"https://api.github.com/users/mattnish/following{/other_user}","gists_url":"https://api.github.com/users/mattnish/gists{/gist_id}","starred_url":"https://api.github.com/users/mattnish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattnish/subscriptions","organizations_url":"https://api.github.com/users/mattnish/orgs","repos_url":"https://api.github.com/users/mattnish/repos","events_url":"https://api.github.com/users/mattnish/events{/privacy}","received_events_url":"https://api.github.com/users/mattnish/received_events","type":"User","site_admin":false},"body":"This, along with L12, seems unnecessary.  If you're not using _users anywhere else, just pass the UsersService response directly into Leaderboard.update().","created_at":"2015-06-25T18:52:40Z","updated_at":"2015-06-25T18:52:40Z","html_url":"https://github.com/mesosphere/foosball/pull/5#discussion_r33291226","pull_request_url":"https://api.github.com/repos/mesosphere/foosball/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/mesosphere/foosball/pulls/comments/33291226"},"html":{"href":"https://github.com/mesosphere/foosball/pull/5#discussion_r33291226"},"pull_request":{"href":"https://api.github.com/repos/mesosphere/foosball/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/mesosphere/foosball/pulls/5","id":38579468,"html_url":"https://github.com/mesosphere/foosball/pull/5","diff_url":"https://github.com/mesosphere/foosball/pull/5.diff","patch_url":"https://github.com/mesosphere/foosball/pull/5.patch","issue_url":"https://api.github.com/repos/mesosphere/foosball/issues/5","number":5,"state":"open","locked":false,"title":"Add leaderboard loading","user":{"login":"rcorral","id":843202,"avatar_url":"https://avatars.githubusercontent.com/u/843202?v=3","gravatar_id":"","url":"https://api.github.com/users/rcorral","html_url":"https://github.com/rcorral","followers_url":"https://api.github.com/users/rcorral/followers","following_url":"https://api.github.com/users/rcorral/following{/other_user}","gists_url":"https://api.github.com/users/rcorral/gists{/gist_id}","starred_url":"https://api.github.com/users/rcorral/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rcorral/subscriptions","organizations_url":"https://api.github.com/users/rcorral/orgs","repos_url":"https://api.github.com/users/rcorral/repos","events_url":"https://api.github.com/users/rcorral/events{/privacy}","received_events_url":"https://api.github.com/users/rcorral/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-25T18:43:44Z","updated_at":"2015-06-25T18:52:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5c2686144a509f9946b49f6fc974179760341b55","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mesosphere/foosball/pulls/5/commits","review_comments_url":"https://api.github.com/repos/mesosphere/foosball/pulls/5/comments","review_comment_url":"https://api.github.com/repos/mesosphere/foosball/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mesosphere/foosball/issues/5/comments","statuses_url":"https://api.github.com/repos/mesosphere/foosball/statuses/0fbe671d1eed073b3aff98f7bc61925064751c4e","head":{"label":"mesosphere:feature/leaderboard","ref":"feature/leaderboard","sha":"0fbe671d1eed073b3aff98f7bc61925064751c4e","user":{"login":"mesosphere","id":3458585,"avatar_url":"https://avatars.githubusercontent.com/u/3458585?v=3","gravatar_id":"","url":"https://api.github.com/users/mesosphere","html_url":"https://github.com/mesosphere","followers_url":"https://api.github.com/users/mesosphere/followers","following_url":"https://api.github.com/users/mesosphere/following{/other_user}","gists_url":"https://api.github.com/users/mesosphere/gists{/gist_id}","starred_url":"https://api.github.com/users/mesosphere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mesosphere/subscriptions","organizations_url":"https://api.github.com/users/mesosphere/orgs","repos_url":"https://api.github.com/users/mesosphere/repos","events_url":"https://api.github.com/users/mesosphere/events{/privacy}","received_events_url":"https://api.github.com/users/mesosphere/received_events","type":"Organization","site_admin":false},"repo":{"id":37591591,"name":"foosball","full_name":"mesosphere/foosball","owner":{"login":"mesosphere","id":3458585,"avatar_url":"https://avatars.githubusercontent.com/u/3458585?v=3","gravatar_id":"","url":"https://api.github.com/users/mesosphere","html_url":"https://github.com/mesosphere","followers_url":"https://api.github.com/users/mesosphere/followers","following_url":"https://api.github.com/users/mesosphere/following{/other_user}","gists_url":"https://api.github.com/users/mesosphere/gists{/gist_id}","starred_url":"https://api.github.com/users/mesosphere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mesosphere/subscriptions","organizations_url":"https://api.github.com/users/mesosphere/orgs","repos_url":"https://api.github.com/users/mesosphere/repos","events_url":"https://api.github.com/users/mesosphere/events{/privacy}","received_events_url":"https://api.github.com/users/mesosphere/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mesosphere/foosball","description":"A match tracking application","fork":false,"url":"https://api.github.com/repos/mesosphere/foosball","forks_url":"https://api.github.com/repos/mesosphere/foosball/forks","keys_url":"https://api.github.com/repos/mesosphere/foosball/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mesosphere/foosball/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mesosphere/foosball/teams","hooks_url":"https://api.github.com/repos/mesosphere/foosball/hooks","issue_events_url":"https://api.github.com/repos/mesosphere/foosball/issues/events{/number}","events_url":"https://api.github.com/repos/mesosphere/foosball/events","assignees_url":"https://api.github.com/repos/mesosphere/foosball/assignees{/user}","branches_url":"https://api.github.com/repos/mesosphere/foosball/branches{/branch}","tags_url":"https://api.github.com/repos/mesosphere/foosball/tags","blobs_url":"https://api.github.com/repos/mesosphere/foosball/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mesosphere/foosball/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mesosphere/foosball/git/refs{/sha}","trees_url":"https://api.github.com/repos/mesosphere/foosball/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mesosphere/foosball/statuses/{sha}","languages_url":"https://api.github.com/repos/mesosphere/foosball/languages","stargazers_url":"https://api.github.com/repos/mesosphere/foosball/stargazers","contributors_url":"https://api.github.com/repos/mesosphere/foosball/contributors","subscribers_url":"https://api.github.com/repos/mesosphere/foosball/subscribers","subscription_url":"https://api.github.com/repos/mesosphere/foosball/subscription","commits_url":"https://api.github.com/repos/mesosphere/foosball/commits{/sha}","git_commits_url":"https://api.github.com/repos/mesosphere/foosball/git/commits{/sha}","comments_url":"https://api.github.com/repos/mesosphere/foosball/comments{/number}","issue_comment_url":"https://api.github.com/repos/mesosphere/foosball/issues/comments{/number}","contents_url":"https://api.github.com/repos/mesosphere/foosball/contents/{+path}","compare_url":"https://api.github.com/repos/mesosphere/foosball/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mesosphere/foosball/merges","archive_url":"https://api.github.com/repos/mesosphere/foosball/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mesosphere/foosball/downloads","issues_url":"https://api.github.com/repos/mesosphere/foosball/issues{/number}","pulls_url":"https://api.github.com/repos/mesosphere/foosball/pulls{/number}","milestones_url":"https://api.github.com/repos/mesosphere/foosball/milestones{/number}","notifications_url":"https://api.github.com/repos/mesosphere/foosball/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mesosphere/foosball/labels{/name}","releases_url":"https://api.github.com/repos/mesosphere/foosball/releases{/id}","created_at":"2015-06-17T11:44:29Z","updated_at":"2015-06-19T10:07:34Z","pushed_at":"2015-06-25T18:43:45Z","git_url":"git://github.com/mesosphere/foosball.git","ssh_url":"git@github.com:mesosphere/foosball.git","clone_url":"https://github.com/mesosphere/foosball.git","svn_url":"https://github.com/mesosphere/foosball","homepage":null,"size":152,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":3,"forks":3,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"mesosphere:master","ref":"master","sha":"1a668f7911b89722a9fa442aec92aba3f5cb0c52","user":{"login":"mesosphere","id":3458585,"avatar_url":"https://avatars.githubusercontent.com/u/3458585?v=3","gravatar_id":"","url":"https://api.github.com/users/mesosphere","html_url":"https://github.com/mesosphere","followers_url":"https://api.github.com/users/mesosphere/followers","following_url":"https://api.github.com/users/mesosphere/following{/other_user}","gists_url":"https://api.github.com/users/mesosphere/gists{/gist_id}","starred_url":"https://api.github.com/users/mesosphere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mesosphere/subscriptions","organizations_url":"https://api.github.com/users/mesosphere/orgs","repos_url":"https://api.github.com/users/mesosphere/repos","events_url":"https://api.github.com/users/mesosphere/events{/privacy}","received_events_url":"https://api.github.com/users/mesosphere/received_events","type":"Organization","site_admin":false},"repo":{"id":37591591,"name":"foosball","full_name":"mesosphere/foosball","owner":{"login":"mesosphere","id":3458585,"avatar_url":"https://avatars.githubusercontent.com/u/3458585?v=3","gravatar_id":"","url":"https://api.github.com/users/mesosphere","html_url":"https://github.com/mesosphere","followers_url":"https://api.github.com/users/mesosphere/followers","following_url":"https://api.github.com/users/mesosphere/following{/other_user}","gists_url":"https://api.github.com/users/mesosphere/gists{/gist_id}","starred_url":"https://api.github.com/users/mesosphere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mesosphere/subscriptions","organizations_url":"https://api.github.com/users/mesosphere/orgs","repos_url":"https://api.github.com/users/mesosphere/repos","events_url":"https://api.github.com/users/mesosphere/events{/privacy}","received_events_url":"https://api.github.com/users/mesosphere/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mesosphere/foosball","description":"A match tracking application","fork":false,"url":"https://api.github.com/repos/mesosphere/foosball","forks_url":"https://api.github.com/repos/mesosphere/foosball/forks","keys_url":"https://api.github.com/repos/mesosphere/foosball/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mesosphere/foosball/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mesosphere/foosball/teams","hooks_url":"https://api.github.com/repos/mesosphere/foosball/hooks","issue_events_url":"https://api.github.com/repos/mesosphere/foosball/issues/events{/number}","events_url":"https://api.github.com/repos/mesosphere/foosball/events","assignees_url":"https://api.github.com/repos/mesosphere/foosball/assignees{/user}","branches_url":"https://api.github.com/repos/mesosphere/foosball/branches{/branch}","tags_url":"https://api.github.com/repos/mesosphere/foosball/tags","blobs_url":"https://api.github.com/repos/mesosphere/foosball/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mesosphere/foosball/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mesosphere/foosball/git/refs{/sha}","trees_url":"https://api.github.com/repos/mesosphere/foosball/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mesosphere/foosball/statuses/{sha}","languages_url":"https://api.github.com/repos/mesosphere/foosball/languages","stargazers_url":"https://api.github.com/repos/mesosphere/foosball/stargazers","contributors_url":"https://api.github.com/repos/mesosphere/foosball/contributors","subscribers_url":"https://api.github.com/repos/mesosphere/foosball/subscribers","subscription_url":"https://api.github.com/repos/mesosphere/foosball/subscription","commits_url":"https://api.github.com/repos/mesosphere/foosball/commits{/sha}","git_commits_url":"https://api.github.com/repos/mesosphere/foosball/git/commits{/sha}","comments_url":"https://api.github.com/repos/mesosphere/foosball/comments{/number}","issue_comment_url":"https://api.github.com/repos/mesosphere/foosball/issues/comments{/number}","contents_url":"https://api.github.com/repos/mesosphere/foosball/contents/{+path}","compare_url":"https://api.github.com/repos/mesosphere/foosball/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mesosphere/foosball/merges","archive_url":"https://api.github.com/repos/mesosphere/foosball/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mesosphere/foosball/downloads","issues_url":"https://api.github.com/repos/mesosphere/foosball/issues{/number}","pulls_url":"https://api.github.com/repos/mesosphere/foosball/pulls{/number}","milestones_url":"https://api.github.com/repos/mesosphere/foosball/milestones{/number}","notifications_url":"https://api.github.com/repos/mesosphere/foosball/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mesosphere/foosball/labels{/name}","releases_url":"https://api.github.com/repos/mesosphere/foosball/releases{/id}","created_at":"2015-06-17T11:44:29Z","updated_at":"2015-06-19T10:07:34Z","pushed_at":"2015-06-25T18:43:45Z","git_url":"git://github.com/mesosphere/foosball.git","ssh_url":"git@github.com:mesosphere/foosball.git","clone_url":"https://github.com/mesosphere/foosball.git","svn_url":"https://github.com/mesosphere/foosball","homepage":null,"size":152,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":3,"forks":3,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mesosphere/foosball/pulls/5"},"html":{"href":"https://github.com/mesosphere/foosball/pull/5"},"issue":{"href":"https://api.github.com/repos/mesosphere/foosball/issues/5"},"comments":{"href":"https://api.github.com/repos/mesosphere/foosball/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/mesosphere/foosball/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/mesosphere/foosball/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mesosphere/foosball/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/mesosphere/foosball/statuses/0fbe671d1eed073b3aff98f7bc61925064751c4e"}}}}