{"action":"created","comment":{"url":"https://api.github.com/repos/htmlacademy-javascript/94812-code-and-magick/pulls/comments/68723699","id":68723699,"diff_hunk":"@@ -108,14 +116,33 @@ function getFilteredReviews(reviewsData, selectedFilter) {\n \n function setFiltrationEnabled() {\n   reviewsFilter.classList.remove('invisible');\n-  var filters = reviewsFilter.querySelectorAll('.reviews-filter-item');\n-  for (var i = 0; i < filters.length; i++) {\n-    filters[i].onclick = function() {\n-      setFilterEnabled(this.htmlFor);\n-    };\n+  reviewsFilter.addEventListener('click', function(evt) {\n+    if (evt.target.classList.contains('reviews-filter-item')) {\n+      setFilterEnabled(evt.target.htmlFor);\n+    }\n+  });\n+}\n+\n+function isNextPageAvailable(reviewsArr, page, pageSize) {\n+  return page < Math.floor(reviewsArr.length / pageSize);","path":"src/reviews.js","position":69,"original_position":69,"commit_id":"12d9c2f0f32377f9df290dafbd1ecf3fdffc49fd","original_commit_id":"12d9c2f0f32377f9df290dafbd1ecf3fdffc49fd","user":{"login":"h4","id":430023,"avatar_url":"https://avatars.githubusercontent.com/u/430023?v=3","gravatar_id":"","url":"https://api.github.com/users/h4","html_url":"https://github.com/h4","followers_url":"https://api.github.com/users/h4/followers","following_url":"https://api.github.com/users/h4/following{/other_user}","gists_url":"https://api.github.com/users/h4/gists{/gist_id}","starred_url":"https://api.github.com/users/h4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/h4/subscriptions","organizations_url":"https://api.github.com/users/h4/orgs","repos_url":"https://api.github.com/users/h4/repos","events_url":"https://api.github.com/users/h4/events{/privacy}","received_events_url":"https://api.github.com/users/h4/received_events","type":"User","site_admin":false},"body":"В `renderReviews()` ты берёшь PAGE_SIZE из глобальной области видимости. Здесь можно сделать также, чтобы формат вызова функций работы с отзывывами был более однородным.","created_at":"2016-06-28T09:17:03Z","updated_at":"2016-06-28T09:17:03Z","html_url":"https://github.com/htmlacademy-javascript/94812-code-and-magick/pull/10#discussion_r68723699","pull_request_url":"https://api.github.com/repos/htmlacademy-javascript/94812-code-and-magick/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-javascript/94812-code-and-magick/pulls/comments/68723699"},"html":{"href":"https://github.com/htmlacademy-javascript/94812-code-and-magick/pull/10#discussion_r68723699"},"pull_request":{"href":"https://api.github.com/repos/htmlacademy-javascript/94812-code-and-magick/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/htmlacademy-javascript/94812-code-and-magick/pulls/10","id":75377172,"html_url":"https://github.com/htmlacademy-javascript/94812-code-and-magick/pull/10","diff_url":"https://github.com/htmlacademy-javascript/94812-code-and-magick/pull/10.diff","patch_url":"https://github.com/htmlacademy-javascript/94812-code-and-magick/pull/10.patch","issue_url":"https://api.github.com/repos/htmlacademy-javascript/94812-code-and-magick/issues/10","number":10,"state":"open","locked":false,"title":"Постраничный вывод и делегирование событий","user":{"login":"ramoona","id":7067080,"avatar_url":"https://avatars.githubusercontent.com/u/7067080?v=3","gravatar_id":"","url":"https://api.github.com/users/ramoona","html_url":"https://github.com/ramoona","followers_url":"https://api.github.com/users/ramoona/followers","following_url":"https://api.github.com/users/ramoona/following{/other_user}","gists_url":"https://api.github.com/users/ramoona/gists{/gist_id}","starred_url":"https://api.github.com/users/ramoona/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ramoona/subscriptions","organizations_url":"https://api.github.com/users/ramoona/orgs","repos_url":"https://api.github.com/users/ramoona/repos","events_url":"https://api.github.com/users/ramoona/events{/privacy}","received_events_url":"https://api.github.com/users/ramoona/received_events","type":"User","site_admin":false},"body":"\n\n--\n:boom: https://htmlacademy-javascript.github.io/94812-code-and-magick/10/","created_at":"2016-06-27T20:47:10Z","updated_at":"2016-06-28T09:17:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a9cd7a728656499bd92cba6f7809eb9af6ef5943","assignee":{"login":"h4","id":430023,"avatar_url":"https://avatars.githubusercontent.com/u/430023?v=3","gravatar_id":"","url":"https://api.github.com/users/h4","html_url":"https://github.com/h4","followers_url":"https://api.github.com/users/h4/followers","following_url":"https://api.github.com/users/h4/following{/other_user}","gists_url":"https://api.github.com/users/h4/gists{/gist_id}","starred_url":"https://api.github.com/users/h4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/h4/subscriptions","organizations_url":"https://api.github.com/users/h4/orgs","repos_url":"https://api.github.com/users/h4/repos","events_url":"https://api.github.com/users/h4/events{/privacy}","received_events_url":"https://api.github.com/users/h4/received_events","type":"User","site_admin":false},"assignees":[{"login":"h4","id":430023,"avatar_url":"https://avatars.githubusercontent.com/u/430023?v=3","gravatar_id":"","url":"https://api.github.com/users/h4","html_url":"https://github.com/h4","followers_url":"https://api.github.com/users/h4/followers","following_url":"https://api.github.com/users/h4/following{/other_user}","gists_url":"https://api.github.com/users/h4/gists{/gist_id}","starred_url":"https://api.github.com/users/h4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/h4/subscriptions","organizations_url":"https://api.github.com/users/h4/orgs","repos_url":"https://api.github.com/users/h4/repos","events_url":"https://api.github.com/users/h4/events{/privacy}","received_events_url":"https://api.github.com/users/h4/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/htmlacademy-javascript/94812-code-and-magick/pulls/10/commits","review_comments_url":"https://api.github.com/repos/htmlacademy-javascript/94812-code-and-magick/pulls/10/comments","review_comment_url":"https://api.github.com/repos/htmlacademy-javascript/94812-code-and-magick/pulls/comments{/number}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/94812-code-and-magick/issues/10/comments","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/94812-code-and-magick/statuses/12d9c2f0f32377f9df290dafbd1ecf3fdffc49fd","head":{"label":"ramoona:module6-task1","ref":"module6-task1","sha":"12d9c2f0f32377f9df290dafbd1ecf3fdffc49fd","user":{"login":"ramoona","id":7067080,"avatar_url":"https://avatars.githubusercontent.com/u/7067080?v=3","gravatar_id":"","url":"https://api.github.com/users/ramoona","html_url":"https://github.com/ramoona","followers_url":"https://api.github.com/users/ramoona/followers","following_url":"https://api.github.com/users/ramoona/following{/other_user}","gists_url":"https://api.github.com/users/ramoona/gists{/gist_id}","starred_url":"https://api.github.com/users/ramoona/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ramoona/subscriptions","organizations_url":"https://api.github.com/users/ramoona/orgs","repos_url":"https://api.github.com/users/ramoona/repos","events_url":"https://api.github.com/users/ramoona/events{/privacy}","received_events_url":"https://api.github.com/users/ramoona/received_events","type":"User","site_admin":false},"repo":{"id":59610142,"name":"94812-code-and-magick","full_name":"ramoona/94812-code-and-magick","owner":{"login":"ramoona","id":7067080,"avatar_url":"https://avatars.githubusercontent.com/u/7067080?v=3","gravatar_id":"","url":"https://api.github.com/users/ramoona","html_url":"https://github.com/ramoona","followers_url":"https://api.github.com/users/ramoona/followers","following_url":"https://api.github.com/users/ramoona/following{/other_user}","gists_url":"https://api.github.com/users/ramoona/gists{/gist_id}","starred_url":"https://api.github.com/users/ramoona/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ramoona/subscriptions","organizations_url":"https://api.github.com/users/ramoona/orgs","repos_url":"https://api.github.com/users/ramoona/repos","events_url":"https://api.github.com/users/ramoona/events{/privacy}","received_events_url":"https://api.github.com/users/ramoona/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ramoona/94812-code-and-magick","description":"Линда Риан","fork":true,"url":"https://api.github.com/repos/ramoona/94812-code-and-magick","forks_url":"https://api.github.com/repos/ramoona/94812-code-and-magick/forks","keys_url":"https://api.github.com/repos/ramoona/94812-code-and-magick/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ramoona/94812-code-and-magick/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ramoona/94812-code-and-magick/teams","hooks_url":"https://api.github.com/repos/ramoona/94812-code-and-magick/hooks","issue_events_url":"https://api.github.com/repos/ramoona/94812-code-and-magick/issues/events{/number}","events_url":"https://api.github.com/repos/ramoona/94812-code-and-magick/events","assignees_url":"https://api.github.com/repos/ramoona/94812-code-and-magick/assignees{/user}","branches_url":"https://api.github.com/repos/ramoona/94812-code-and-magick/branches{/branch}","tags_url":"https://api.github.com/repos/ramoona/94812-code-and-magick/tags","blobs_url":"https://api.github.com/repos/ramoona/94812-code-and-magick/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ramoona/94812-code-and-magick/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ramoona/94812-code-and-magick/git/refs{/sha}","trees_url":"https://api.github.com/repos/ramoona/94812-code-and-magick/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ramoona/94812-code-and-magick/statuses/{sha}","languages_url":"https://api.github.com/repos/ramoona/94812-code-and-magick/languages","stargazers_url":"https://api.github.com/repos/ramoona/94812-code-and-magick/stargazers","contributors_url":"https://api.github.com/repos/ramoona/94812-code-and-magick/contributors","subscribers_url":"https://api.github.com/repos/ramoona/94812-code-and-magick/subscribers","subscription_url":"https://api.github.com/repos/ramoona/94812-code-and-magick/subscription","commits_url":"https://api.github.com/repos/ramoona/94812-code-and-magick/commits{/sha}","git_commits_url":"https://api.github.com/repos/ramoona/94812-code-and-magick/git/commits{/sha}","comments_url":"https://api.github.com/repos/ramoona/94812-code-and-magick/comments{/number}","issue_comment_url":"https://api.github.com/repos/ramoona/94812-code-and-magick/issues/comments{/number}","contents_url":"https://api.github.com/repos/ramoona/94812-code-and-magick/contents/{+path}","compare_url":"https://api.github.com/repos/ramoona/94812-code-and-magick/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ramoona/94812-code-and-magick/merges","archive_url":"https://api.github.com/repos/ramoona/94812-code-and-magick/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ramoona/94812-code-and-magick/downloads","issues_url":"https://api.github.com/repos/ramoona/94812-code-and-magick/issues{/number}","pulls_url":"https://api.github.com/repos/ramoona/94812-code-and-magick/pulls{/number}","milestones_url":"https://api.github.com/repos/ramoona/94812-code-and-magick/milestones{/number}","notifications_url":"https://api.github.com/repos/ramoona/94812-code-and-magick/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ramoona/94812-code-and-magick/labels{/name}","releases_url":"https://api.github.com/repos/ramoona/94812-code-and-magick/releases{/id}","deployments_url":"https://api.github.com/repos/ramoona/94812-code-and-magick/deployments","created_at":"2016-05-24T21:32:54Z","updated_at":"2016-05-24T21:32:55Z","pushed_at":"2016-06-27T20:46:50Z","git_url":"git://github.com/ramoona/94812-code-and-magick.git","ssh_url":"git@github.com:ramoona/94812-code-and-magick.git","clone_url":"https://github.com/ramoona/94812-code-and-magick.git","svn_url":"https://github.com/ramoona/94812-code-and-magick","homepage":null,"size":1068,"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":"db969a75f7e342ab3b9f5dbb7800f1458b66c917","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":59601129,"name":"94812-code-and-magick","full_name":"htmlacademy-javascript/94812-code-and-magick","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/94812-code-and-magick","description":"Линда Риан","fork":false,"url":"https://api.github.com/repos/htmlacademy-javascript/94812-code-and-magick","forks_url":"https://api.github.com/repos/htmlacademy-javascript/94812-code-and-magick/forks","keys_url":"https://api.github.com/repos/htmlacademy-javascript/94812-code-and-magick/keys{/key_id}","collaborators_url":"https://api.github.com/repos/htmlacademy-javascript/94812-code-and-magick/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/htmlacademy-javascript/94812-code-and-magick/teams","hooks_url":"https://api.github.com/repos/htmlacademy-javascript/94812-code-and-magick/hooks","issue_events_url":"https://api.github.com/repos/htmlacademy-javascript/94812-code-and-magick/issues/events{/number}","events_url":"https://api.github.com/repos/htmlacademy-javascript/94812-code-and-magick/events","assignees_url":"https://api.github.com/repos/htmlacademy-javascript/94812-code-and-magick/assignees{/user}","branches_url":"https://api.github.com/repos/htmlacademy-javascript/94812-code-and-magick/branches{/branch}","tags_url":"https://api.github.com/repos/htmlacademy-javascript/94812-code-and-magick/tags","blobs_url":"https://api.github.com/repos/htmlacademy-javascript/94812-code-and-magick/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/htmlacademy-javascript/94812-code-and-magick/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/htmlacademy-javascript/94812-code-and-magick/git/refs{/sha}","trees_url":"https://api.github.com/repos/htmlacademy-javascript/94812-code-and-magick/git/trees{/sha}","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/94812-code-and-magick/statuses/{sha}","languages_url":"https://api.github.com/repos/htmlacademy-javascript/94812-code-and-magick/languages","stargazers_url":"https://api.github.com/repos/htmlacademy-javascript/94812-code-and-magick/stargazers","contributors_url":"https://api.github.com/repos/htmlacademy-javascript/94812-code-and-magick/contributors","subscribers_url":"https://api.github.com/repos/htmlacademy-javascript/94812-code-and-magick/subscribers","subscription_url":"https://api.github.com/repos/htmlacademy-javascript/94812-code-and-magick/subscription","commits_url":"https://api.github.com/repos/htmlacademy-javascript/94812-code-and-magick/commits{/sha}","git_commits_url":"https://api.github.com/repos/htmlacademy-javascript/94812-code-and-magick/git/commits{/sha}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/94812-code-and-magick/comments{/number}","issue_comment_url":"https://api.github.com/repos/htmlacademy-javascript/94812-code-and-magick/issues/comments{/number}","contents_url":"https://api.github.com/repos/htmlacademy-javascript/94812-code-and-magick/contents/{+path}","compare_url":"https://api.github.com/repos/htmlacademy-javascript/94812-code-and-magick/compare/{base}...{head}","merges_url":"https://api.github.com/repos/htmlacademy-javascript/94812-code-and-magick/merges","archive_url":"https://api.github.com/repos/htmlacademy-javascript/94812-code-and-magick/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/htmlacademy-javascript/94812-code-and-magick/downloads","issues_url":"https://api.github.com/repos/htmlacademy-javascript/94812-code-and-magick/issues{/number}","pulls_url":"https://api.github.com/repos/htmlacademy-javascript/94812-code-and-magick/pulls{/number}","milestones_url":"https://api.github.com/repos/htmlacademy-javascript/94812-code-and-magick/milestones{/number}","notifications_url":"https://api.github.com/repos/htmlacademy-javascript/94812-code-and-magick/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/htmlacademy-javascript/94812-code-and-magick/labels{/name}","releases_url":"https://api.github.com/repos/htmlacademy-javascript/94812-code-and-magick/releases{/id}","deployments_url":"https://api.github.com/repos/htmlacademy-javascript/94812-code-and-magick/deployments","created_at":"2016-05-24T19:11:35Z","updated_at":"2016-05-24T21:40:47Z","pushed_at":"2016-06-28T09:10:54Z","git_url":"git://github.com/htmlacademy-javascript/94812-code-and-magick.git","ssh_url":"git@github.com:htmlacademy-javascript/94812-code-and-magick.git","clone_url":"https://github.com/htmlacademy-javascript/94812-code-and-magick.git","svn_url":"https://github.com/htmlacademy-javascript/94812-code-and-magick","homepage":"https://github.com/ramoona/94812-code-and-magick","size":1101,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":true,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-javascript/94812-code-and-magick/pulls/10"},"html":{"href":"https://github.com/htmlacademy-javascript/94812-code-and-magick/pull/10"},"issue":{"href":"https://api.github.com/repos/htmlacademy-javascript/94812-code-and-magick/issues/10"},"comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/94812-code-and-magick/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/94812-code-and-magick/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/htmlacademy-javascript/94812-code-and-magick/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/htmlacademy-javascript/94812-code-and-magick/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/htmlacademy-javascript/94812-code-and-magick/statuses/12d9c2f0f32377f9df290dafbd1ecf3fdffc49fd"}}}}
{"actor":{"display_login":"h4"}}