{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla/remote-newtab/pulls/comments/45166400","id":45166400,"diff_hunk":"@@ -0,0 +1,251 @@\n+/* This Source Code Form is subject to the terms of the Mozilla Public\n+ * License, v. 2.0. If a copy of the MPL was not distributed with this file,\n+ * You can obtain one at http://mozilla.org/MPL/2.0/. */\n+\n+/**\n+ * Singleton that provides access to all links contained in the grid (including\n+ * the ones that don't fit on the grid). A link is a plain object that looks\n+ * like this:\n+ *\n+ * {\n+ *   url: \"http://www.mozilla.org/\",\n+ *   title: \"Mozilla\",\n+ *   frecency: 1337,\n+ *   lastVisitDate: 1394678824766431,\n+ * }\n+ */\n+ /*globals gPinnedLinks, gBlockedLinks, ProviderManager, DirectoryLinksProvider, async*/\n+","path":"src/js/links.js","position":18,"original_position":18,"commit_id":"4e3d7d124d05747988699d731cb9718987fd4c85","original_commit_id":"4e3d7d124d05747988699d731cb9718987fd4c85","user":{"login":"marcoscaceres","id":870154,"avatar_url":"https://avatars.githubusercontent.com/u/870154?v=3","gravatar_id":"","url":"https://api.github.com/users/marcoscaceres","html_url":"https://github.com/marcoscaceres","followers_url":"https://api.github.com/users/marcoscaceres/followers","following_url":"https://api.github.com/users/marcoscaceres/following{/other_user}","gists_url":"https://api.github.com/users/marcoscaceres/gists{/gist_id}","starred_url":"https://api.github.com/users/marcoscaceres/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcoscaceres/subscriptions","organizations_url":"https://api.github.com/users/marcoscaceres/orgs","repos_url":"https://api.github.com/users/marcoscaceres/repos","events_url":"https://api.github.com/users/marcoscaceres/events{/privacy}","received_events_url":"https://api.github.com/users/marcoscaceres/received_events","type":"User","site_admin":false},"body":"Nit: wrap in anonymous function to prevent leaking scope and consts  ","created_at":"2015-11-18T07:15:55Z","updated_at":"2015-11-18T07:15:55Z","html_url":"https://github.com/mozilla/remote-newtab/pull/108#discussion_r45166400","pull_request_url":"https://api.github.com/repos/mozilla/remote-newtab/pulls/108","_links":{"self":{"href":"https://api.github.com/repos/mozilla/remote-newtab/pulls/comments/45166400"},"html":{"href":"https://github.com/mozilla/remote-newtab/pull/108#discussion_r45166400"},"pull_request":{"href":"https://api.github.com/repos/mozilla/remote-newtab/pulls/108"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla/remote-newtab/pulls/108","id":47960286,"html_url":"https://github.com/mozilla/remote-newtab/pull/108","diff_url":"https://github.com/mozilla/remote-newtab/pull/108.diff","patch_url":"https://github.com/mozilla/remote-newtab/pull/108.patch","issue_url":"https://api.github.com/repos/mozilla/remote-newtab/issues/108","number":108,"state":"open","locked":false,"title":"Adding fetching and caching of directory links.","user":{"login":"emtwo","id":784781,"avatar_url":"https://avatars.githubusercontent.com/u/784781?v=3","gravatar_id":"","url":"https://api.github.com/users/emtwo","html_url":"https://github.com/emtwo","followers_url":"https://api.github.com/users/emtwo/followers","following_url":"https://api.github.com/users/emtwo/following{/other_user}","gists_url":"https://api.github.com/users/emtwo/gists{/gist_id}","starred_url":"https://api.github.com/users/emtwo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emtwo/subscriptions","organizations_url":"https://api.github.com/users/emtwo/orgs","repos_url":"https://api.github.com/users/emtwo/repos","events_url":"https://api.github.com/users/emtwo/events{/privacy}","received_events_url":"https://api.github.com/users/emtwo/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-16T21:07:19Z","updated_at":"2015-11-18T07:15:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"068ab145cacbcd503feb7d34a917a7a74bace35e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mozilla/remote-newtab/pulls/108/commits","review_comments_url":"https://api.github.com/repos/mozilla/remote-newtab/pulls/108/comments","review_comment_url":"https://api.github.com/repos/mozilla/remote-newtab/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mozilla/remote-newtab/issues/108/comments","statuses_url":"https://api.github.com/repos/mozilla/remote-newtab/statuses/4e3d7d124d05747988699d731cb9718987fd4c85","head":{"label":"mozilla:emtwo/directorylinks","ref":"emtwo/directorylinks","sha":"4e3d7d124d05747988699d731cb9718987fd4c85","user":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"repo":{"id":40678245,"name":"remote-newtab","full_name":"mozilla/remote-newtab","owner":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla/remote-newtab","description":"Remotely-hosted New Tab Page","fork":false,"url":"https://api.github.com/repos/mozilla/remote-newtab","forks_url":"https://api.github.com/repos/mozilla/remote-newtab/forks","keys_url":"https://api.github.com/repos/mozilla/remote-newtab/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla/remote-newtab/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla/remote-newtab/teams","hooks_url":"https://api.github.com/repos/mozilla/remote-newtab/hooks","issue_events_url":"https://api.github.com/repos/mozilla/remote-newtab/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla/remote-newtab/events","assignees_url":"https://api.github.com/repos/mozilla/remote-newtab/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla/remote-newtab/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla/remote-newtab/tags","blobs_url":"https://api.github.com/repos/mozilla/remote-newtab/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla/remote-newtab/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla/remote-newtab/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla/remote-newtab/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla/remote-newtab/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla/remote-newtab/languages","stargazers_url":"https://api.github.com/repos/mozilla/remote-newtab/stargazers","contributors_url":"https://api.github.com/repos/mozilla/remote-newtab/contributors","subscribers_url":"https://api.github.com/repos/mozilla/remote-newtab/subscribers","subscription_url":"https://api.github.com/repos/mozilla/remote-newtab/subscription","commits_url":"https://api.github.com/repos/mozilla/remote-newtab/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla/remote-newtab/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla/remote-newtab/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla/remote-newtab/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozilla/remote-newtab/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla/remote-newtab/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla/remote-newtab/merges","archive_url":"https://api.github.com/repos/mozilla/remote-newtab/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla/remote-newtab/downloads","issues_url":"https://api.github.com/repos/mozilla/remote-newtab/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla/remote-newtab/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla/remote-newtab/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla/remote-newtab/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla/remote-newtab/labels{/name}","releases_url":"https://api.github.com/repos/mozilla/remote-newtab/releases{/id}","created_at":"2015-08-13T19:37:51Z","updated_at":"2015-11-14T23:11:00Z","pushed_at":"2015-11-17T10:29:46Z","git_url":"git://github.com/mozilla/remote-newtab.git","ssh_url":"git@github.com:mozilla/remote-newtab.git","clone_url":"https://github.com/mozilla/remote-newtab.git","svn_url":"https://github.com/mozilla/remote-newtab","homepage":"https://mozilla.github.io/remote-newtab/src/","size":854,"stargazers_count":9,"watchers_count":9,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":3,"mirror_url":null,"open_issues_count":33,"forks":3,"open_issues":33,"watchers":9,"default_branch":"gh-pages"}},"base":{"label":"mozilla:gh-pages","ref":"gh-pages","sha":"6868020c9c7e48cdad072db4d4ce06736aa24196","user":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"repo":{"id":40678245,"name":"remote-newtab","full_name":"mozilla/remote-newtab","owner":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla/remote-newtab","description":"Remotely-hosted New Tab Page","fork":false,"url":"https://api.github.com/repos/mozilla/remote-newtab","forks_url":"https://api.github.com/repos/mozilla/remote-newtab/forks","keys_url":"https://api.github.com/repos/mozilla/remote-newtab/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla/remote-newtab/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla/remote-newtab/teams","hooks_url":"https://api.github.com/repos/mozilla/remote-newtab/hooks","issue_events_url":"https://api.github.com/repos/mozilla/remote-newtab/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla/remote-newtab/events","assignees_url":"https://api.github.com/repos/mozilla/remote-newtab/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla/remote-newtab/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla/remote-newtab/tags","blobs_url":"https://api.github.com/repos/mozilla/remote-newtab/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla/remote-newtab/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla/remote-newtab/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla/remote-newtab/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla/remote-newtab/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla/remote-newtab/languages","stargazers_url":"https://api.github.com/repos/mozilla/remote-newtab/stargazers","contributors_url":"https://api.github.com/repos/mozilla/remote-newtab/contributors","subscribers_url":"https://api.github.com/repos/mozilla/remote-newtab/subscribers","subscription_url":"https://api.github.com/repos/mozilla/remote-newtab/subscription","commits_url":"https://api.github.com/repos/mozilla/remote-newtab/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla/remote-newtab/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla/remote-newtab/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla/remote-newtab/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozilla/remote-newtab/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla/remote-newtab/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla/remote-newtab/merges","archive_url":"https://api.github.com/repos/mozilla/remote-newtab/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla/remote-newtab/downloads","issues_url":"https://api.github.com/repos/mozilla/remote-newtab/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla/remote-newtab/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla/remote-newtab/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla/remote-newtab/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla/remote-newtab/labels{/name}","releases_url":"https://api.github.com/repos/mozilla/remote-newtab/releases{/id}","created_at":"2015-08-13T19:37:51Z","updated_at":"2015-11-14T23:11:00Z","pushed_at":"2015-11-17T10:29:46Z","git_url":"git://github.com/mozilla/remote-newtab.git","ssh_url":"git@github.com:mozilla/remote-newtab.git","clone_url":"https://github.com/mozilla/remote-newtab.git","svn_url":"https://github.com/mozilla/remote-newtab","homepage":"https://mozilla.github.io/remote-newtab/src/","size":854,"stargazers_count":9,"watchers_count":9,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":3,"mirror_url":null,"open_issues_count":33,"forks":3,"open_issues":33,"watchers":9,"default_branch":"gh-pages"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla/remote-newtab/pulls/108"},"html":{"href":"https://github.com/mozilla/remote-newtab/pull/108"},"issue":{"href":"https://api.github.com/repos/mozilla/remote-newtab/issues/108"},"comments":{"href":"https://api.github.com/repos/mozilla/remote-newtab/issues/108/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla/remote-newtab/pulls/108/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla/remote-newtab/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mozilla/remote-newtab/pulls/108/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla/remote-newtab/statuses/4e3d7d124d05747988699d731cb9718987fd4c85"}}}}