{"action":"created","comment":{"url":"https://api.github.com/repos/js-htmlacademy/7956-code-and-magick/pulls/comments/41089952","id":41089952,"diff_hunk":"@@ -125,19 +156,20 @@\n     }\n   }\n \n-  function setActiveFilter(filterId) {\n-    var filteredReviews = filterReviews(reviewsAll, filterId);\n-    renderRevies(filteredReviews);\n+  function setActiveFilter(filterName) {\n+    reviewsList = filterReviews(reviewsAll, filterName);\n+    currentPage = 0;\n+    renderReviews(reviewsList, currentPage, true);\n+    document.getElementById(filterName).checked = true;","path":"js/reviews.js","position":74,"original_position":74,"commit_id":"155b281bd6c14e055e95a19510a3a36d6bb117a1","original_commit_id":"155b281bd6c14e055e95a19510a3a36d6bb117a1","user":{"login":"4u","id":304576,"avatar_url":"https://avatars.githubusercontent.com/u/304576?v=3","gravatar_id":"","url":"https://api.github.com/users/4u","html_url":"https://github.com/4u","followers_url":"https://api.github.com/users/4u/followers","following_url":"https://api.github.com/users/4u/following{/other_user}","gists_url":"https://api.github.com/users/4u/gists{/gist_id}","starred_url":"https://api.github.com/users/4u/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/4u/subscriptions","organizations_url":"https://api.github.com/users/4u/orgs","repos_url":"https://api.github.com/users/4u/repos","events_url":"https://api.github.com/users/4u/events{/privacy}","received_events_url":"https://api.github.com/users/4u/received_events","type":"User","site_admin":false},"body":"`filterName == ''` поэтому:\r\n```\r\nUncaught TypeError: Cannot set property 'checked' of null\r\n  setActiveFilter @ reviews.js:163\r\n  (anonymous function) @ reviews.js:171\r\n```","created_at":"2015-10-03T18:12:07Z","updated_at":"2015-10-03T18:12:07Z","html_url":"https://github.com/js-htmlacademy/7956-code-and-magick/pull/6#discussion_r41089952","pull_request_url":"https://api.github.com/repos/js-htmlacademy/7956-code-and-magick/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/js-htmlacademy/7956-code-and-magick/pulls/comments/41089952"},"html":{"href":"https://github.com/js-htmlacademy/7956-code-and-magick/pull/6#discussion_r41089952"},"pull_request":{"href":"https://api.github.com/repos/js-htmlacademy/7956-code-and-magick/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/js-htmlacademy/7956-code-and-magick/pulls/6","id":46393666,"html_url":"https://github.com/js-htmlacademy/7956-code-and-magick/pull/6","diff_url":"https://github.com/js-htmlacademy/7956-code-and-magick/pull/6.diff","patch_url":"https://github.com/js-htmlacademy/7956-code-and-magick/pull/6.patch","issue_url":"https://api.github.com/repos/js-htmlacademy/7956-code-and-magick/issues/6","number":6,"state":"open","locked":false,"title":"Постраничный вывод и делегирование событий","user":{"login":"4err","id":3590683,"avatar_url":"https://avatars.githubusercontent.com/u/3590683?v=3","gravatar_id":"","url":"https://api.github.com/users/4err","html_url":"https://github.com/4err","followers_url":"https://api.github.com/users/4err/followers","following_url":"https://api.github.com/users/4err/following{/other_user}","gists_url":"https://api.github.com/users/4err/gists{/gist_id}","starred_url":"https://api.github.com/users/4err/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/4err/subscriptions","organizations_url":"https://api.github.com/users/4err/orgs","repos_url":"https://api.github.com/users/4err/repos","events_url":"https://api.github.com/users/4err/events{/privacy}","received_events_url":"https://api.github.com/users/4err/received_events","type":"User","site_admin":false},"body":null,"created_at":"2015-09-30T12:12:05Z","updated_at":"2015-10-03T18:12:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"718917cadc4de527a383d79d743c56f3c9511db9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/js-htmlacademy/7956-code-and-magick/pulls/6/commits","review_comments_url":"https://api.github.com/repos/js-htmlacademy/7956-code-and-magick/pulls/6/comments","review_comment_url":"https://api.github.com/repos/js-htmlacademy/7956-code-and-magick/pulls/comments{/number}","comments_url":"https://api.github.com/repos/js-htmlacademy/7956-code-and-magick/issues/6/comments","statuses_url":"https://api.github.com/repos/js-htmlacademy/7956-code-and-magick/statuses/155b281bd6c14e055e95a19510a3a36d6bb117a1","head":{"label":"4err:master","ref":"master","sha":"155b281bd6c14e055e95a19510a3a36d6bb117a1","user":{"login":"4err","id":3590683,"avatar_url":"https://avatars.githubusercontent.com/u/3590683?v=3","gravatar_id":"","url":"https://api.github.com/users/4err","html_url":"https://github.com/4err","followers_url":"https://api.github.com/users/4err/followers","following_url":"https://api.github.com/users/4err/following{/other_user}","gists_url":"https://api.github.com/users/4err/gists{/gist_id}","starred_url":"https://api.github.com/users/4err/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/4err/subscriptions","organizations_url":"https://api.github.com/users/4err/orgs","repos_url":"https://api.github.com/users/4err/repos","events_url":"https://api.github.com/users/4err/events{/privacy}","received_events_url":"https://api.github.com/users/4err/received_events","type":"User","site_admin":false},"repo":{"id":42740191,"name":"7956-code-and-magick","full_name":"4err/7956-code-and-magick","owner":{"login":"4err","id":3590683,"avatar_url":"https://avatars.githubusercontent.com/u/3590683?v=3","gravatar_id":"","url":"https://api.github.com/users/4err","html_url":"https://github.com/4err","followers_url":"https://api.github.com/users/4err/followers","following_url":"https://api.github.com/users/4err/following{/other_user}","gists_url":"https://api.github.com/users/4err/gists{/gist_id}","starred_url":"https://api.github.com/users/4err/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/4err/subscriptions","organizations_url":"https://api.github.com/users/4err/orgs","repos_url":"https://api.github.com/users/4err/repos","events_url":"https://api.github.com/users/4err/events{/privacy}","received_events_url":"https://api.github.com/users/4err/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/4err/7956-code-and-magick","description":"Денис Байдаров","fork":true,"url":"https://api.github.com/repos/4err/7956-code-and-magick","forks_url":"https://api.github.com/repos/4err/7956-code-and-magick/forks","keys_url":"https://api.github.com/repos/4err/7956-code-and-magick/keys{/key_id}","collaborators_url":"https://api.github.com/repos/4err/7956-code-and-magick/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/4err/7956-code-and-magick/teams","hooks_url":"https://api.github.com/repos/4err/7956-code-and-magick/hooks","issue_events_url":"https://api.github.com/repos/4err/7956-code-and-magick/issues/events{/number}","events_url":"https://api.github.com/repos/4err/7956-code-and-magick/events","assignees_url":"https://api.github.com/repos/4err/7956-code-and-magick/assignees{/user}","branches_url":"https://api.github.com/repos/4err/7956-code-and-magick/branches{/branch}","tags_url":"https://api.github.com/repos/4err/7956-code-and-magick/tags","blobs_url":"https://api.github.com/repos/4err/7956-code-and-magick/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/4err/7956-code-and-magick/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/4err/7956-code-and-magick/git/refs{/sha}","trees_url":"https://api.github.com/repos/4err/7956-code-and-magick/git/trees{/sha}","statuses_url":"https://api.github.com/repos/4err/7956-code-and-magick/statuses/{sha}","languages_url":"https://api.github.com/repos/4err/7956-code-and-magick/languages","stargazers_url":"https://api.github.com/repos/4err/7956-code-and-magick/stargazers","contributors_url":"https://api.github.com/repos/4err/7956-code-and-magick/contributors","subscribers_url":"https://api.github.com/repos/4err/7956-code-and-magick/subscribers","subscription_url":"https://api.github.com/repos/4err/7956-code-and-magick/subscription","commits_url":"https://api.github.com/repos/4err/7956-code-and-magick/commits{/sha}","git_commits_url":"https://api.github.com/repos/4err/7956-code-and-magick/git/commits{/sha}","comments_url":"https://api.github.com/repos/4err/7956-code-and-magick/comments{/number}","issue_comment_url":"https://api.github.com/repos/4err/7956-code-and-magick/issues/comments{/number}","contents_url":"https://api.github.com/repos/4err/7956-code-and-magick/contents/{+path}","compare_url":"https://api.github.com/repos/4err/7956-code-and-magick/compare/{base}...{head}","merges_url":"https://api.github.com/repos/4err/7956-code-and-magick/merges","archive_url":"https://api.github.com/repos/4err/7956-code-and-magick/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/4err/7956-code-and-magick/downloads","issues_url":"https://api.github.com/repos/4err/7956-code-and-magick/issues{/number}","pulls_url":"https://api.github.com/repos/4err/7956-code-and-magick/pulls{/number}","milestones_url":"https://api.github.com/repos/4err/7956-code-and-magick/milestones{/number}","notifications_url":"https://api.github.com/repos/4err/7956-code-and-magick/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/4err/7956-code-and-magick/labels{/name}","releases_url":"https://api.github.com/repos/4err/7956-code-and-magick/releases{/id}","created_at":"2015-09-18T18:29:10Z","updated_at":"2015-09-22T17:18:14Z","pushed_at":"2015-10-02T11:14:32Z","git_url":"git://github.com/4err/7956-code-and-magick.git","ssh_url":"git@github.com:4err/7956-code-and-magick.git","clone_url":"https://github.com/4err/7956-code-and-magick.git","svn_url":"https://github.com/4err/7956-code-and-magick","homepage":null,"size":1157,"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":"js-htmlacademy:master","ref":"master","sha":"52a15e1126a8000cc6517ef58aaf7bb968d6e86f","user":{"login":"js-htmlacademy","id":14179712,"avatar_url":"https://avatars.githubusercontent.com/u/14179712?v=3","gravatar_id":"","url":"https://api.github.com/users/js-htmlacademy","html_url":"https://github.com/js-htmlacademy","followers_url":"https://api.github.com/users/js-htmlacademy/followers","following_url":"https://api.github.com/users/js-htmlacademy/following{/other_user}","gists_url":"https://api.github.com/users/js-htmlacademy/gists{/gist_id}","starred_url":"https://api.github.com/users/js-htmlacademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/js-htmlacademy/subscriptions","organizations_url":"https://api.github.com/users/js-htmlacademy/orgs","repos_url":"https://api.github.com/users/js-htmlacademy/repos","events_url":"https://api.github.com/users/js-htmlacademy/events{/privacy}","received_events_url":"https://api.github.com/users/js-htmlacademy/received_events","type":"Organization","site_admin":false},"repo":{"id":42740133,"name":"7956-code-and-magick","full_name":"js-htmlacademy/7956-code-and-magick","owner":{"login":"js-htmlacademy","id":14179712,"avatar_url":"https://avatars.githubusercontent.com/u/14179712?v=3","gravatar_id":"","url":"https://api.github.com/users/js-htmlacademy","html_url":"https://github.com/js-htmlacademy","followers_url":"https://api.github.com/users/js-htmlacademy/followers","following_url":"https://api.github.com/users/js-htmlacademy/following{/other_user}","gists_url":"https://api.github.com/users/js-htmlacademy/gists{/gist_id}","starred_url":"https://api.github.com/users/js-htmlacademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/js-htmlacademy/subscriptions","organizations_url":"https://api.github.com/users/js-htmlacademy/orgs","repos_url":"https://api.github.com/users/js-htmlacademy/repos","events_url":"https://api.github.com/users/js-htmlacademy/events{/privacy}","received_events_url":"https://api.github.com/users/js-htmlacademy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/js-htmlacademy/7956-code-and-magick","description":"Денис Байдаров","fork":false,"url":"https://api.github.com/repos/js-htmlacademy/7956-code-and-magick","forks_url":"https://api.github.com/repos/js-htmlacademy/7956-code-and-magick/forks","keys_url":"https://api.github.com/repos/js-htmlacademy/7956-code-and-magick/keys{/key_id}","collaborators_url":"https://api.github.com/repos/js-htmlacademy/7956-code-and-magick/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/js-htmlacademy/7956-code-and-magick/teams","hooks_url":"https://api.github.com/repos/js-htmlacademy/7956-code-and-magick/hooks","issue_events_url":"https://api.github.com/repos/js-htmlacademy/7956-code-and-magick/issues/events{/number}","events_url":"https://api.github.com/repos/js-htmlacademy/7956-code-and-magick/events","assignees_url":"https://api.github.com/repos/js-htmlacademy/7956-code-and-magick/assignees{/user}","branches_url":"https://api.github.com/repos/js-htmlacademy/7956-code-and-magick/branches{/branch}","tags_url":"https://api.github.com/repos/js-htmlacademy/7956-code-and-magick/tags","blobs_url":"https://api.github.com/repos/js-htmlacademy/7956-code-and-magick/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/js-htmlacademy/7956-code-and-magick/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/js-htmlacademy/7956-code-and-magick/git/refs{/sha}","trees_url":"https://api.github.com/repos/js-htmlacademy/7956-code-and-magick/git/trees{/sha}","statuses_url":"https://api.github.com/repos/js-htmlacademy/7956-code-and-magick/statuses/{sha}","languages_url":"https://api.github.com/repos/js-htmlacademy/7956-code-and-magick/languages","stargazers_url":"https://api.github.com/repos/js-htmlacademy/7956-code-and-magick/stargazers","contributors_url":"https://api.github.com/repos/js-htmlacademy/7956-code-and-magick/contributors","subscribers_url":"https://api.github.com/repos/js-htmlacademy/7956-code-and-magick/subscribers","subscription_url":"https://api.github.com/repos/js-htmlacademy/7956-code-and-magick/subscription","commits_url":"https://api.github.com/repos/js-htmlacademy/7956-code-and-magick/commits{/sha}","git_commits_url":"https://api.github.com/repos/js-htmlacademy/7956-code-and-magick/git/commits{/sha}","comments_url":"https://api.github.com/repos/js-htmlacademy/7956-code-and-magick/comments{/number}","issue_comment_url":"https://api.github.com/repos/js-htmlacademy/7956-code-and-magick/issues/comments{/number}","contents_url":"https://api.github.com/repos/js-htmlacademy/7956-code-and-magick/contents/{+path}","compare_url":"https://api.github.com/repos/js-htmlacademy/7956-code-and-magick/compare/{base}...{head}","merges_url":"https://api.github.com/repos/js-htmlacademy/7956-code-and-magick/merges","archive_url":"https://api.github.com/repos/js-htmlacademy/7956-code-and-magick/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/js-htmlacademy/7956-code-and-magick/downloads","issues_url":"https://api.github.com/repos/js-htmlacademy/7956-code-and-magick/issues{/number}","pulls_url":"https://api.github.com/repos/js-htmlacademy/7956-code-and-magick/pulls{/number}","milestones_url":"https://api.github.com/repos/js-htmlacademy/7956-code-and-magick/milestones{/number}","notifications_url":"https://api.github.com/repos/js-htmlacademy/7956-code-and-magick/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/js-htmlacademy/7956-code-and-magick/labels{/name}","releases_url":"https://api.github.com/repos/js-htmlacademy/7956-code-and-magick/releases{/id}","created_at":"2015-09-18T18:28:09Z","updated_at":"2015-09-25T22:11:32Z","pushed_at":"2015-09-30T12:12:50Z","git_url":"git://github.com/js-htmlacademy/7956-code-and-magick.git","ssh_url":"git@github.com:js-htmlacademy/7956-code-and-magick.git","clone_url":"https://github.com/js-htmlacademy/7956-code-and-magick.git","svn_url":"https://github.com/js-htmlacademy/7956-code-and-magick","homepage":null,"size":1185,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"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/js-htmlacademy/7956-code-and-magick/pulls/6"},"html":{"href":"https://github.com/js-htmlacademy/7956-code-and-magick/pull/6"},"issue":{"href":"https://api.github.com/repos/js-htmlacademy/7956-code-and-magick/issues/6"},"comments":{"href":"https://api.github.com/repos/js-htmlacademy/7956-code-and-magick/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/js-htmlacademy/7956-code-and-magick/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/js-htmlacademy/7956-code-and-magick/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/js-htmlacademy/7956-code-and-magick/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/js-htmlacademy/7956-code-and-magick/statuses/155b281bd6c14e055e95a19510a3a36d6bb117a1"}}}}