{"action":"created","comment":{"url":"https://api.github.com/repos/frostburn/panel-league/pulls/comments/100406678","pull_request_review_id":21113872,"id":100406678,"diff_hunk":"@@ -0,0 +1,53 @@\n+class KeyAutorepeater {\n+    constructor(repeatDelay, repeatRate) {\n+      this.repeatDelay = repeatDelay;\n+      this.repeatRate = repeatRate;\n+      this.listeners = new Map();\n+      this.repeaters = new Set();\n+      this.keyDownData = new Map();\n+      window.addEventListener('keydown', (ev) => {\n+        if (!this.listeners.has(ev.key)) {\n+          return;\n+        }\n+        ev.preventDefault();\n+        if (this.keyDownData.has(ev.key)) {\n+          return;\n+        }\n+        let id = null;\n+\n+        if (this.repeaters.has(ev.key)) {\n+          id = window.setTimeout(() => this.autorepeat(ev.key), this.repeatDelay);\n+        }\n+        this.keyDownData.set(ev.key, {\n+          key: ev.key,\n+          id: id,\n+        });\n+        this.listeners.get(ev.key)();","path":"ui/fancy/src/js/autorepeat.js","position":25,"original_position":25,"commit_id":"cb863e520127483f918042dde91484828cffa138","original_commit_id":"cb863e520127483f918042dde91484828cffa138","user":{"login":"RauliL","id":8155018,"avatar_url":"https://avatars.githubusercontent.com/u/8155018?v=3","gravatar_id":"","url":"https://api.github.com/users/RauliL","html_url":"https://github.com/RauliL","followers_url":"https://api.github.com/users/RauliL/followers","following_url":"https://api.github.com/users/RauliL/following{/other_user}","gists_url":"https://api.github.com/users/RauliL/gists{/gist_id}","starred_url":"https://api.github.com/users/RauliL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RauliL/subscriptions","organizations_url":"https://api.github.com/users/RauliL/orgs","repos_url":"https://api.github.com/users/RauliL/repos","events_url":"https://api.github.com/users/RauliL/events{/privacy}","received_events_url":"https://api.github.com/users/RauliL/received_events","type":"User","site_admin":false},"body":"You should use `.get` instead and check whether it returns `undefined`.","created_at":"2017-02-09T20:41:23Z","updated_at":"2017-02-09T20:41:23Z","html_url":"https://github.com/frostburn/panel-league/pull/82#discussion_r100406678","pull_request_url":"https://api.github.com/repos/frostburn/panel-league/pulls/82","_links":{"self":{"href":"https://api.github.com/repos/frostburn/panel-league/pulls/comments/100406678"},"html":{"href":"https://github.com/frostburn/panel-league/pull/82#discussion_r100406678"},"pull_request":{"href":"https://api.github.com/repos/frostburn/panel-league/pulls/82"}}},"pull_request":{"url":"https://api.github.com/repos/frostburn/panel-league/pulls/82","id":105505599,"html_url":"https://github.com/frostburn/panel-league/pull/82","diff_url":"https://github.com/frostburn/panel-league/pull/82.diff","patch_url":"https://github.com/frostburn/panel-league/pull/82.patch","issue_url":"https://api.github.com/repos/frostburn/panel-league/issues/82","number":82,"state":"open","locked":false,"title":"Override browser key autorepeat with a custom class","user":{"login":"frostburn","id":1253499,"avatar_url":"https://avatars.githubusercontent.com/u/1253499?v=3","gravatar_id":"","url":"https://api.github.com/users/frostburn","html_url":"https://github.com/frostburn","followers_url":"https://api.github.com/users/frostburn/followers","following_url":"https://api.github.com/users/frostburn/following{/other_user}","gists_url":"https://api.github.com/users/frostburn/gists{/gist_id}","starred_url":"https://api.github.com/users/frostburn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frostburn/subscriptions","organizations_url":"https://api.github.com/users/frostburn/orgs","repos_url":"https://api.github.com/users/frostburn/repos","events_url":"https://api.github.com/users/frostburn/events{/privacy}","received_events_url":"https://api.github.com/users/frostburn/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-02-09T20:20:13Z","updated_at":"2017-02-09T20:41:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f48a0120257d2c1a1260e9d51a7a8f66b67461c6","assignee":{"login":"RauliL","id":8155018,"avatar_url":"https://avatars.githubusercontent.com/u/8155018?v=3","gravatar_id":"","url":"https://api.github.com/users/RauliL","html_url":"https://github.com/RauliL","followers_url":"https://api.github.com/users/RauliL/followers","following_url":"https://api.github.com/users/RauliL/following{/other_user}","gists_url":"https://api.github.com/users/RauliL/gists{/gist_id}","starred_url":"https://api.github.com/users/RauliL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RauliL/subscriptions","organizations_url":"https://api.github.com/users/RauliL/orgs","repos_url":"https://api.github.com/users/RauliL/repos","events_url":"https://api.github.com/users/RauliL/events{/privacy}","received_events_url":"https://api.github.com/users/RauliL/received_events","type":"User","site_admin":false},"assignees":[{"login":"RauliL","id":8155018,"avatar_url":"https://avatars.githubusercontent.com/u/8155018?v=3","gravatar_id":"","url":"https://api.github.com/users/RauliL","html_url":"https://github.com/RauliL","followers_url":"https://api.github.com/users/RauliL/followers","following_url":"https://api.github.com/users/RauliL/following{/other_user}","gists_url":"https://api.github.com/users/RauliL/gists{/gist_id}","starred_url":"https://api.github.com/users/RauliL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RauliL/subscriptions","organizations_url":"https://api.github.com/users/RauliL/orgs","repos_url":"https://api.github.com/users/RauliL/repos","events_url":"https://api.github.com/users/RauliL/events{/privacy}","received_events_url":"https://api.github.com/users/RauliL/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/frostburn/panel-league/pulls/82/commits","review_comments_url":"https://api.github.com/repos/frostburn/panel-league/pulls/82/comments","review_comment_url":"https://api.github.com/repos/frostburn/panel-league/pulls/comments{/number}","comments_url":"https://api.github.com/repos/frostburn/panel-league/issues/82/comments","statuses_url":"https://api.github.com/repos/frostburn/panel-league/statuses/cb863e520127483f918042dde91484828cffa138","head":{"label":"frostburn:autorepeat","ref":"autorepeat","sha":"cb863e520127483f918042dde91484828cffa138","user":{"login":"frostburn","id":1253499,"avatar_url":"https://avatars.githubusercontent.com/u/1253499?v=3","gravatar_id":"","url":"https://api.github.com/users/frostburn","html_url":"https://github.com/frostburn","followers_url":"https://api.github.com/users/frostburn/followers","following_url":"https://api.github.com/users/frostburn/following{/other_user}","gists_url":"https://api.github.com/users/frostburn/gists{/gist_id}","starred_url":"https://api.github.com/users/frostburn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frostburn/subscriptions","organizations_url":"https://api.github.com/users/frostburn/orgs","repos_url":"https://api.github.com/users/frostburn/repos","events_url":"https://api.github.com/users/frostburn/events{/privacy}","received_events_url":"https://api.github.com/users/frostburn/received_events","type":"User","site_admin":false},"repo":{"id":78212783,"name":"panel-league","full_name":"frostburn/panel-league","owner":{"login":"frostburn","id":1253499,"avatar_url":"https://avatars.githubusercontent.com/u/1253499?v=3","gravatar_id":"","url":"https://api.github.com/users/frostburn","html_url":"https://github.com/frostburn","followers_url":"https://api.github.com/users/frostburn/followers","following_url":"https://api.github.com/users/frostburn/following{/other_user}","gists_url":"https://api.github.com/users/frostburn/gists{/gist_id}","starred_url":"https://api.github.com/users/frostburn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frostburn/subscriptions","organizations_url":"https://api.github.com/users/frostburn/orgs","repos_url":"https://api.github.com/users/frostburn/repos","events_url":"https://api.github.com/users/frostburn/events{/privacy}","received_events_url":"https://api.github.com/users/frostburn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/frostburn/panel-league","description":"Panel de Pon / Tetris Attack / Puzzle Legue clone in browser","fork":false,"url":"https://api.github.com/repos/frostburn/panel-league","forks_url":"https://api.github.com/repos/frostburn/panel-league/forks","keys_url":"https://api.github.com/repos/frostburn/panel-league/keys{/key_id}","collaborators_url":"https://api.github.com/repos/frostburn/panel-league/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/frostburn/panel-league/teams","hooks_url":"https://api.github.com/repos/frostburn/panel-league/hooks","issue_events_url":"https://api.github.com/repos/frostburn/panel-league/issues/events{/number}","events_url":"https://api.github.com/repos/frostburn/panel-league/events","assignees_url":"https://api.github.com/repos/frostburn/panel-league/assignees{/user}","branches_url":"https://api.github.com/repos/frostburn/panel-league/branches{/branch}","tags_url":"https://api.github.com/repos/frostburn/panel-league/tags","blobs_url":"https://api.github.com/repos/frostburn/panel-league/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/frostburn/panel-league/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/frostburn/panel-league/git/refs{/sha}","trees_url":"https://api.github.com/repos/frostburn/panel-league/git/trees{/sha}","statuses_url":"https://api.github.com/repos/frostburn/panel-league/statuses/{sha}","languages_url":"https://api.github.com/repos/frostburn/panel-league/languages","stargazers_url":"https://api.github.com/repos/frostburn/panel-league/stargazers","contributors_url":"https://api.github.com/repos/frostburn/panel-league/contributors","subscribers_url":"https://api.github.com/repos/frostburn/panel-league/subscribers","subscription_url":"https://api.github.com/repos/frostburn/panel-league/subscription","commits_url":"https://api.github.com/repos/frostburn/panel-league/commits{/sha}","git_commits_url":"https://api.github.com/repos/frostburn/panel-league/git/commits{/sha}","comments_url":"https://api.github.com/repos/frostburn/panel-league/comments{/number}","issue_comment_url":"https://api.github.com/repos/frostburn/panel-league/issues/comments{/number}","contents_url":"https://api.github.com/repos/frostburn/panel-league/contents/{+path}","compare_url":"https://api.github.com/repos/frostburn/panel-league/compare/{base}...{head}","merges_url":"https://api.github.com/repos/frostburn/panel-league/merges","archive_url":"https://api.github.com/repos/frostburn/panel-league/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/frostburn/panel-league/downloads","issues_url":"https://api.github.com/repos/frostburn/panel-league/issues{/number}","pulls_url":"https://api.github.com/repos/frostburn/panel-league/pulls{/number}","milestones_url":"https://api.github.com/repos/frostburn/panel-league/milestones{/number}","notifications_url":"https://api.github.com/repos/frostburn/panel-league/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/frostburn/panel-league/labels{/name}","releases_url":"https://api.github.com/repos/frostburn/panel-league/releases{/id}","deployments_url":"https://api.github.com/repos/frostburn/panel-league/deployments","created_at":"2017-01-06T14:38:38Z","updated_at":"2017-01-15T17:57:44Z","pushed_at":"2017-02-09T20:24:24Z","git_url":"git://github.com/frostburn/panel-league.git","ssh_url":"git@github.com:frostburn/panel-league.git","clone_url":"https://github.com/frostburn/panel-league.git","svn_url":"https://github.com/frostburn/panel-league","homepage":null,"size":153,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":8,"forks":1,"open_issues":8,"watchers":2,"default_branch":"master"}},"base":{"label":"frostburn:master","ref":"master","sha":"8943db7338dd2cd5adf5b14a5467df0f5db4ffe2","user":{"login":"frostburn","id":1253499,"avatar_url":"https://avatars.githubusercontent.com/u/1253499?v=3","gravatar_id":"","url":"https://api.github.com/users/frostburn","html_url":"https://github.com/frostburn","followers_url":"https://api.github.com/users/frostburn/followers","following_url":"https://api.github.com/users/frostburn/following{/other_user}","gists_url":"https://api.github.com/users/frostburn/gists{/gist_id}","starred_url":"https://api.github.com/users/frostburn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frostburn/subscriptions","organizations_url":"https://api.github.com/users/frostburn/orgs","repos_url":"https://api.github.com/users/frostburn/repos","events_url":"https://api.github.com/users/frostburn/events{/privacy}","received_events_url":"https://api.github.com/users/frostburn/received_events","type":"User","site_admin":false},"repo":{"id":78212783,"name":"panel-league","full_name":"frostburn/panel-league","owner":{"login":"frostburn","id":1253499,"avatar_url":"https://avatars.githubusercontent.com/u/1253499?v=3","gravatar_id":"","url":"https://api.github.com/users/frostburn","html_url":"https://github.com/frostburn","followers_url":"https://api.github.com/users/frostburn/followers","following_url":"https://api.github.com/users/frostburn/following{/other_user}","gists_url":"https://api.github.com/users/frostburn/gists{/gist_id}","starred_url":"https://api.github.com/users/frostburn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frostburn/subscriptions","organizations_url":"https://api.github.com/users/frostburn/orgs","repos_url":"https://api.github.com/users/frostburn/repos","events_url":"https://api.github.com/users/frostburn/events{/privacy}","received_events_url":"https://api.github.com/users/frostburn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/frostburn/panel-league","description":"Panel de Pon / Tetris Attack / Puzzle Legue clone in browser","fork":false,"url":"https://api.github.com/repos/frostburn/panel-league","forks_url":"https://api.github.com/repos/frostburn/panel-league/forks","keys_url":"https://api.github.com/repos/frostburn/panel-league/keys{/key_id}","collaborators_url":"https://api.github.com/repos/frostburn/panel-league/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/frostburn/panel-league/teams","hooks_url":"https://api.github.com/repos/frostburn/panel-league/hooks","issue_events_url":"https://api.github.com/repos/frostburn/panel-league/issues/events{/number}","events_url":"https://api.github.com/repos/frostburn/panel-league/events","assignees_url":"https://api.github.com/repos/frostburn/panel-league/assignees{/user}","branches_url":"https://api.github.com/repos/frostburn/panel-league/branches{/branch}","tags_url":"https://api.github.com/repos/frostburn/panel-league/tags","blobs_url":"https://api.github.com/repos/frostburn/panel-league/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/frostburn/panel-league/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/frostburn/panel-league/git/refs{/sha}","trees_url":"https://api.github.com/repos/frostburn/panel-league/git/trees{/sha}","statuses_url":"https://api.github.com/repos/frostburn/panel-league/statuses/{sha}","languages_url":"https://api.github.com/repos/frostburn/panel-league/languages","stargazers_url":"https://api.github.com/repos/frostburn/panel-league/stargazers","contributors_url":"https://api.github.com/repos/frostburn/panel-league/contributors","subscribers_url":"https://api.github.com/repos/frostburn/panel-league/subscribers","subscription_url":"https://api.github.com/repos/frostburn/panel-league/subscription","commits_url":"https://api.github.com/repos/frostburn/panel-league/commits{/sha}","git_commits_url":"https://api.github.com/repos/frostburn/panel-league/git/commits{/sha}","comments_url":"https://api.github.com/repos/frostburn/panel-league/comments{/number}","issue_comment_url":"https://api.github.com/repos/frostburn/panel-league/issues/comments{/number}","contents_url":"https://api.github.com/repos/frostburn/panel-league/contents/{+path}","compare_url":"https://api.github.com/repos/frostburn/panel-league/compare/{base}...{head}","merges_url":"https://api.github.com/repos/frostburn/panel-league/merges","archive_url":"https://api.github.com/repos/frostburn/panel-league/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/frostburn/panel-league/downloads","issues_url":"https://api.github.com/repos/frostburn/panel-league/issues{/number}","pulls_url":"https://api.github.com/repos/frostburn/panel-league/pulls{/number}","milestones_url":"https://api.github.com/repos/frostburn/panel-league/milestones{/number}","notifications_url":"https://api.github.com/repos/frostburn/panel-league/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/frostburn/panel-league/labels{/name}","releases_url":"https://api.github.com/repos/frostburn/panel-league/releases{/id}","deployments_url":"https://api.github.com/repos/frostburn/panel-league/deployments","created_at":"2017-01-06T14:38:38Z","updated_at":"2017-01-15T17:57:44Z","pushed_at":"2017-02-09T20:24:24Z","git_url":"git://github.com/frostburn/panel-league.git","ssh_url":"git@github.com:frostburn/panel-league.git","clone_url":"https://github.com/frostburn/panel-league.git","svn_url":"https://github.com/frostburn/panel-league","homepage":null,"size":153,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":8,"forks":1,"open_issues":8,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/frostburn/panel-league/pulls/82"},"html":{"href":"https://github.com/frostburn/panel-league/pull/82"},"issue":{"href":"https://api.github.com/repos/frostburn/panel-league/issues/82"},"comments":{"href":"https://api.github.com/repos/frostburn/panel-league/issues/82/comments"},"review_comments":{"href":"https://api.github.com/repos/frostburn/panel-league/pulls/82/comments"},"review_comment":{"href":"https://api.github.com/repos/frostburn/panel-league/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/frostburn/panel-league/pulls/82/commits"},"statuses":{"href":"https://api.github.com/repos/frostburn/panel-league/statuses/cb863e520127483f918042dde91484828cffa138"}}}}
{"actor":{"display_login":"RauliL"}}