{"action":"created","comment":{"url":"https://api.github.com/repos/htmlacademy-javascript/43436-kekstagram/pulls/comments/88126573","pull_request_review_id":8709581,"id":88126573,"diff_hunk":"@@ -53,22 +53,24 @@ window.addEventListener('load', function() {\n   }\n });\n \n-function throttle(fn, throttleTimeout) {\n-  var lastCall = Date.now();\n+function debounce(fn, delay) {\n+  var timer = null;\n   return function() {\n-    if (Date.now() - lastCall >= throttleTimeout) {\n-      fn();\n-      lastCall = Date.now();\n-    }\n+    var context = this,","path":"src/js/main.js","position":13,"original_position":13,"commit_id":"02356d9c1a3e15d6384828194799d7ad327b7d0a","original_commit_id":"02356d9c1a3e15d6384828194799d7ad327b7d0a","user":{"login":"zeckson","id":259739,"avatar_url":"https://avatars.githubusercontent.com/u/259739?v=3","gravatar_id":"","url":"https://api.github.com/users/zeckson","html_url":"https://github.com/zeckson","followers_url":"https://api.github.com/users/zeckson/followers","following_url":"https://api.github.com/users/zeckson/following{/other_user}","gists_url":"https://api.github.com/users/zeckson/gists{/gist_id}","starred_url":"https://api.github.com/users/zeckson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zeckson/subscriptions","organizations_url":"https://api.github.com/users/zeckson/orgs","repos_url":"https://api.github.com/users/zeckson/repos","events_url":"https://api.github.com/users/zeckson/events{/privacy}","received_events_url":"https://api.github.com/users/zeckson/received_events","type":"User","site_admin":false},"body":"Зачем нужны эти переменные?","created_at":"2016-11-15T22:16:18Z","updated_at":"2016-11-15T22:16:18Z","html_url":"https://github.com/htmlacademy-javascript/43436-kekstagram/pull/15#discussion_r88126573","pull_request_url":"https://api.github.com/repos/htmlacademy-javascript/43436-kekstagram/pulls/15","_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-javascript/43436-kekstagram/pulls/comments/88126573"},"html":{"href":"https://github.com/htmlacademy-javascript/43436-kekstagram/pull/15#discussion_r88126573"},"pull_request":{"href":"https://api.github.com/repos/htmlacademy-javascript/43436-kekstagram/pulls/15"}}},"pull_request":{"url":"https://api.github.com/repos/htmlacademy-javascript/43436-kekstagram/pulls/15","id":93674656,"html_url":"https://github.com/htmlacademy-javascript/43436-kekstagram/pull/15","diff_url":"https://github.com/htmlacademy-javascript/43436-kekstagram/pull/15.diff","patch_url":"https://github.com/htmlacademy-javascript/43436-kekstagram/pull/15.patch","issue_url":"https://api.github.com/repos/htmlacademy-javascript/43436-kekstagram/issues/15","number":15,"state":"open","locked":false,"title":"События: Дополнительное задание","user":{"login":"katesheleh","id":11166226,"avatar_url":"https://avatars.githubusercontent.com/u/11166226?v=3","gravatar_id":"","url":"https://api.github.com/users/katesheleh","html_url":"https://github.com/katesheleh","followers_url":"https://api.github.com/users/katesheleh/followers","following_url":"https://api.github.com/users/katesheleh/following{/other_user}","gists_url":"https://api.github.com/users/katesheleh/gists{/gist_id}","starred_url":"https://api.github.com/users/katesheleh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/katesheleh/subscriptions","organizations_url":"https://api.github.com/users/katesheleh/orgs","repos_url":"https://api.github.com/users/katesheleh/repos","events_url":"https://api.github.com/users/katesheleh/events{/privacy}","received_events_url":"https://api.github.com/users/katesheleh/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-11-15T00:07:42Z","updated_at":"2016-11-15T22:17:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"97dda3599e60e5551f948456c36f519da35edf3f","assignee":{"login":"zeckson","id":259739,"avatar_url":"https://avatars.githubusercontent.com/u/259739?v=3","gravatar_id":"","url":"https://api.github.com/users/zeckson","html_url":"https://github.com/zeckson","followers_url":"https://api.github.com/users/zeckson/followers","following_url":"https://api.github.com/users/zeckson/following{/other_user}","gists_url":"https://api.github.com/users/zeckson/gists{/gist_id}","starred_url":"https://api.github.com/users/zeckson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zeckson/subscriptions","organizations_url":"https://api.github.com/users/zeckson/orgs","repos_url":"https://api.github.com/users/zeckson/repos","events_url":"https://api.github.com/users/zeckson/events{/privacy}","received_events_url":"https://api.github.com/users/zeckson/received_events","type":"User","site_admin":false},"assignees":[{"login":"zeckson","id":259739,"avatar_url":"https://avatars.githubusercontent.com/u/259739?v=3","gravatar_id":"","url":"https://api.github.com/users/zeckson","html_url":"https://github.com/zeckson","followers_url":"https://api.github.com/users/zeckson/followers","following_url":"https://api.github.com/users/zeckson/following{/other_user}","gists_url":"https://api.github.com/users/zeckson/gists{/gist_id}","starred_url":"https://api.github.com/users/zeckson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zeckson/subscriptions","organizations_url":"https://api.github.com/users/zeckson/orgs","repos_url":"https://api.github.com/users/zeckson/repos","events_url":"https://api.github.com/users/zeckson/events{/privacy}","received_events_url":"https://api.github.com/users/zeckson/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/htmlacademy-javascript/43436-kekstagram/pulls/15/commits","review_comments_url":"https://api.github.com/repos/htmlacademy-javascript/43436-kekstagram/pulls/15/comments","review_comment_url":"https://api.github.com/repos/htmlacademy-javascript/43436-kekstagram/pulls/comments{/number}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/43436-kekstagram/issues/15/comments","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/43436-kekstagram/statuses/02356d9c1a3e15d6384828194799d7ad327b7d0a","head":{"label":"katesheleh:module7-task3","ref":"module7-task3","sha":"02356d9c1a3e15d6384828194799d7ad327b7d0a","user":{"login":"katesheleh","id":11166226,"avatar_url":"https://avatars.githubusercontent.com/u/11166226?v=3","gravatar_id":"","url":"https://api.github.com/users/katesheleh","html_url":"https://github.com/katesheleh","followers_url":"https://api.github.com/users/katesheleh/followers","following_url":"https://api.github.com/users/katesheleh/following{/other_user}","gists_url":"https://api.github.com/users/katesheleh/gists{/gist_id}","starred_url":"https://api.github.com/users/katesheleh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/katesheleh/subscriptions","organizations_url":"https://api.github.com/users/katesheleh/orgs","repos_url":"https://api.github.com/users/katesheleh/repos","events_url":"https://api.github.com/users/katesheleh/events{/privacy}","received_events_url":"https://api.github.com/users/katesheleh/received_events","type":"User","site_admin":false},"repo":{"id":70101679,"name":"43436-kekstagram","full_name":"katesheleh/43436-kekstagram","owner":{"login":"katesheleh","id":11166226,"avatar_url":"https://avatars.githubusercontent.com/u/11166226?v=3","gravatar_id":"","url":"https://api.github.com/users/katesheleh","html_url":"https://github.com/katesheleh","followers_url":"https://api.github.com/users/katesheleh/followers","following_url":"https://api.github.com/users/katesheleh/following{/other_user}","gists_url":"https://api.github.com/users/katesheleh/gists{/gist_id}","starred_url":"https://api.github.com/users/katesheleh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/katesheleh/subscriptions","organizations_url":"https://api.github.com/users/katesheleh/orgs","repos_url":"https://api.github.com/users/katesheleh/repos","events_url":"https://api.github.com/users/katesheleh/events{/privacy}","received_events_url":"https://api.github.com/users/katesheleh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/katesheleh/43436-kekstagram","description":"Катерина Шелег","fork":true,"url":"https://api.github.com/repos/katesheleh/43436-kekstagram","forks_url":"https://api.github.com/repos/katesheleh/43436-kekstagram/forks","keys_url":"https://api.github.com/repos/katesheleh/43436-kekstagram/keys{/key_id}","collaborators_url":"https://api.github.com/repos/katesheleh/43436-kekstagram/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/katesheleh/43436-kekstagram/teams","hooks_url":"https://api.github.com/repos/katesheleh/43436-kekstagram/hooks","issue_events_url":"https://api.github.com/repos/katesheleh/43436-kekstagram/issues/events{/number}","events_url":"https://api.github.com/repos/katesheleh/43436-kekstagram/events","assignees_url":"https://api.github.com/repos/katesheleh/43436-kekstagram/assignees{/user}","branches_url":"https://api.github.com/repos/katesheleh/43436-kekstagram/branches{/branch}","tags_url":"https://api.github.com/repos/katesheleh/43436-kekstagram/tags","blobs_url":"https://api.github.com/repos/katesheleh/43436-kekstagram/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/katesheleh/43436-kekstagram/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/katesheleh/43436-kekstagram/git/refs{/sha}","trees_url":"https://api.github.com/repos/katesheleh/43436-kekstagram/git/trees{/sha}","statuses_url":"https://api.github.com/repos/katesheleh/43436-kekstagram/statuses/{sha}","languages_url":"https://api.github.com/repos/katesheleh/43436-kekstagram/languages","stargazers_url":"https://api.github.com/repos/katesheleh/43436-kekstagram/stargazers","contributors_url":"https://api.github.com/repos/katesheleh/43436-kekstagram/contributors","subscribers_url":"https://api.github.com/repos/katesheleh/43436-kekstagram/subscribers","subscription_url":"https://api.github.com/repos/katesheleh/43436-kekstagram/subscription","commits_url":"https://api.github.com/repos/katesheleh/43436-kekstagram/commits{/sha}","git_commits_url":"https://api.github.com/repos/katesheleh/43436-kekstagram/git/commits{/sha}","comments_url":"https://api.github.com/repos/katesheleh/43436-kekstagram/comments{/number}","issue_comment_url":"https://api.github.com/repos/katesheleh/43436-kekstagram/issues/comments{/number}","contents_url":"https://api.github.com/repos/katesheleh/43436-kekstagram/contents/{+path}","compare_url":"https://api.github.com/repos/katesheleh/43436-kekstagram/compare/{base}...{head}","merges_url":"https://api.github.com/repos/katesheleh/43436-kekstagram/merges","archive_url":"https://api.github.com/repos/katesheleh/43436-kekstagram/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/katesheleh/43436-kekstagram/downloads","issues_url":"https://api.github.com/repos/katesheleh/43436-kekstagram/issues{/number}","pulls_url":"https://api.github.com/repos/katesheleh/43436-kekstagram/pulls{/number}","milestones_url":"https://api.github.com/repos/katesheleh/43436-kekstagram/milestones{/number}","notifications_url":"https://api.github.com/repos/katesheleh/43436-kekstagram/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/katesheleh/43436-kekstagram/labels{/name}","releases_url":"https://api.github.com/repos/katesheleh/43436-kekstagram/releases{/id}","deployments_url":"https://api.github.com/repos/katesheleh/43436-kekstagram/deployments","created_at":"2016-10-05T21:41:27Z","updated_at":"2016-10-05T21:41:28Z","pushed_at":"2016-11-15T21:40:57Z","git_url":"git://github.com/katesheleh/43436-kekstagram.git","ssh_url":"git@github.com:katesheleh/43436-kekstagram.git","clone_url":"https://github.com/katesheleh/43436-kekstagram.git","svn_url":"https://github.com/katesheleh/43436-kekstagram","homepage":null,"size":4374,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"htmlacademy-javascript:master","ref":"master","sha":"2d36488b4b0ce36fd4ebbc6f1b47f107bcd5f5e2","user":{"login":"htmlacademy-javascript","id":14179712,"avatar_url":"https://avatars.githubusercontent.com/u/14179712?v=3","gravatar_id":"","url":"https://api.github.com/users/htmlacademy-javascript","html_url":"https://github.com/htmlacademy-javascript","followers_url":"https://api.github.com/users/htmlacademy-javascript/followers","following_url":"https://api.github.com/users/htmlacademy-javascript/following{/other_user}","gists_url":"https://api.github.com/users/htmlacademy-javascript/gists{/gist_id}","starred_url":"https://api.github.com/users/htmlacademy-javascript/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/htmlacademy-javascript/subscriptions","organizations_url":"https://api.github.com/users/htmlacademy-javascript/orgs","repos_url":"https://api.github.com/users/htmlacademy-javascript/repos","events_url":"https://api.github.com/users/htmlacademy-javascript/events{/privacy}","received_events_url":"https://api.github.com/users/htmlacademy-javascript/received_events","type":"Organization","site_admin":false},"repo":{"id":70003736,"name":"43436-kekstagram","full_name":"htmlacademy-javascript/43436-kekstagram","owner":{"login":"htmlacademy-javascript","id":14179712,"avatar_url":"https://avatars.githubusercontent.com/u/14179712?v=3","gravatar_id":"","url":"https://api.github.com/users/htmlacademy-javascript","html_url":"https://github.com/htmlacademy-javascript","followers_url":"https://api.github.com/users/htmlacademy-javascript/followers","following_url":"https://api.github.com/users/htmlacademy-javascript/following{/other_user}","gists_url":"https://api.github.com/users/htmlacademy-javascript/gists{/gist_id}","starred_url":"https://api.github.com/users/htmlacademy-javascript/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/htmlacademy-javascript/subscriptions","organizations_url":"https://api.github.com/users/htmlacademy-javascript/orgs","repos_url":"https://api.github.com/users/htmlacademy-javascript/repos","events_url":"https://api.github.com/users/htmlacademy-javascript/events{/privacy}","received_events_url":"https://api.github.com/users/htmlacademy-javascript/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/htmlacademy-javascript/43436-kekstagram","description":"Катерина Шелег","fork":false,"url":"https://api.github.com/repos/htmlacademy-javascript/43436-kekstagram","forks_url":"https://api.github.com/repos/htmlacademy-javascript/43436-kekstagram/forks","keys_url":"https://api.github.com/repos/htmlacademy-javascript/43436-kekstagram/keys{/key_id}","collaborators_url":"https://api.github.com/repos/htmlacademy-javascript/43436-kekstagram/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/htmlacademy-javascript/43436-kekstagram/teams","hooks_url":"https://api.github.com/repos/htmlacademy-javascript/43436-kekstagram/hooks","issue_events_url":"https://api.github.com/repos/htmlacademy-javascript/43436-kekstagram/issues/events{/number}","events_url":"https://api.github.com/repos/htmlacademy-javascript/43436-kekstagram/events","assignees_url":"https://api.github.com/repos/htmlacademy-javascript/43436-kekstagram/assignees{/user}","branches_url":"https://api.github.com/repos/htmlacademy-javascript/43436-kekstagram/branches{/branch}","tags_url":"https://api.github.com/repos/htmlacademy-javascript/43436-kekstagram/tags","blobs_url":"https://api.github.com/repos/htmlacademy-javascript/43436-kekstagram/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/htmlacademy-javascript/43436-kekstagram/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/htmlacademy-javascript/43436-kekstagram/git/refs{/sha}","trees_url":"https://api.github.com/repos/htmlacademy-javascript/43436-kekstagram/git/trees{/sha}","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/43436-kekstagram/statuses/{sha}","languages_url":"https://api.github.com/repos/htmlacademy-javascript/43436-kekstagram/languages","stargazers_url":"https://api.github.com/repos/htmlacademy-javascript/43436-kekstagram/stargazers","contributors_url":"https://api.github.com/repos/htmlacademy-javascript/43436-kekstagram/contributors","subscribers_url":"https://api.github.com/repos/htmlacademy-javascript/43436-kekstagram/subscribers","subscription_url":"https://api.github.com/repos/htmlacademy-javascript/43436-kekstagram/subscription","commits_url":"https://api.github.com/repos/htmlacademy-javascript/43436-kekstagram/commits{/sha}","git_commits_url":"https://api.github.com/repos/htmlacademy-javascript/43436-kekstagram/git/commits{/sha}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/43436-kekstagram/comments{/number}","issue_comment_url":"https://api.github.com/repos/htmlacademy-javascript/43436-kekstagram/issues/comments{/number}","contents_url":"https://api.github.com/repos/htmlacademy-javascript/43436-kekstagram/contents/{+path}","compare_url":"https://api.github.com/repos/htmlacademy-javascript/43436-kekstagram/compare/{base}...{head}","merges_url":"https://api.github.com/repos/htmlacademy-javascript/43436-kekstagram/merges","archive_url":"https://api.github.com/repos/htmlacademy-javascript/43436-kekstagram/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/htmlacademy-javascript/43436-kekstagram/downloads","issues_url":"https://api.github.com/repos/htmlacademy-javascript/43436-kekstagram/issues{/number}","pulls_url":"https://api.github.com/repos/htmlacademy-javascript/43436-kekstagram/pulls{/number}","milestones_url":"https://api.github.com/repos/htmlacademy-javascript/43436-kekstagram/milestones{/number}","notifications_url":"https://api.github.com/repos/htmlacademy-javascript/43436-kekstagram/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/htmlacademy-javascript/43436-kekstagram/labels{/name}","releases_url":"https://api.github.com/repos/htmlacademy-javascript/43436-kekstagram/releases{/id}","deployments_url":"https://api.github.com/repos/htmlacademy-javascript/43436-kekstagram/deployments","created_at":"2016-10-04T20:32:14Z","updated_at":"2016-10-05T21:59:15Z","pushed_at":"2016-11-15T21:40:57Z","git_url":"git://github.com/htmlacademy-javascript/43436-kekstagram.git","ssh_url":"git@github.com:htmlacademy-javascript/43436-kekstagram.git","clone_url":"https://github.com/htmlacademy-javascript/43436-kekstagram.git","svn_url":"https://github.com/htmlacademy-javascript/43436-kekstagram","homepage":"https://github.com/katesheleh/43436-kekstagram","size":4417,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":true,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-javascript/43436-kekstagram/pulls/15"},"html":{"href":"https://github.com/htmlacademy-javascript/43436-kekstagram/pull/15"},"issue":{"href":"https://api.github.com/repos/htmlacademy-javascript/43436-kekstagram/issues/15"},"comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/43436-kekstagram/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/43436-kekstagram/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/htmlacademy-javascript/43436-kekstagram/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/htmlacademy-javascript/43436-kekstagram/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/htmlacademy-javascript/43436-kekstagram/statuses/02356d9c1a3e15d6384828194799d7ad327b7d0a"}}}}
{"actor":{"display_login":"zeckson"}}