{"action":"created","comment":{"url":"https://api.github.com/repos/Strandol/code-and-magick/pulls/comments/90767170","pull_request_review_id":11285551,"id":90767170,"diff_hunk":"@@ -59,4 +123,79 @@\n       clearTimeout(imageLoadTimeout);\n     }\n   }\n+\n+  function setupFilter(filter) {\n+    var filteredReviews = getFilteredReviews(reviews, filter);\n+    refreshReviews(filteredReviews);\n+  }\n+\n+  function setupFilters(){\n+    var filters = reviewsFilter.querySelectorAll('.reviews-filter-item');","path":"js/reviews.js","position":131,"original_position":131,"commit_id":"5c8520bfc765ea90b0ebb01c7d7940dda342658a","original_commit_id":"5c8520bfc765ea90b0ebb01c7d7940dda342658a","user":{"login":"DudaGod","id":5900697,"avatar_url":"https://avatars.githubusercontent.com/u/5900697?v=3","gravatar_id":"","url":"https://api.github.com/users/DudaGod","html_url":"https://github.com/DudaGod","followers_url":"https://api.github.com/users/DudaGod/followers","following_url":"https://api.github.com/users/DudaGod/following{/other_user}","gists_url":"https://api.github.com/users/DudaGod/gists{/gist_id}","starred_url":"https://api.github.com/users/DudaGod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DudaGod/subscriptions","organizations_url":"https://api.github.com/users/DudaGod/orgs","repos_url":"https://api.github.com/users/DudaGod/repos","events_url":"https://api.github.com/users/DudaGod/events{/privacy}","received_events_url":"https://api.github.com/users/DudaGod/received_events","type":"User","site_admin":false},"body":"почему сразу не сделаешь из нее массив, чтобы можно было юзать так:\r\n```js\r\nfilters.forEach(...);\r\n```\r\n\r\nУ тебя сейчас `filters` - это ArrayLike (т.е. не совсем массив) его нужно привести к нему с помощью slice.","created_at":"2016-12-03T23:19:42Z","updated_at":"2016-12-03T23:23:21Z","html_url":"https://github.com/Strandol/code-and-magick/pull/11#discussion_r90767170","pull_request_url":"https://api.github.com/repos/Strandol/code-and-magick/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/Strandol/code-and-magick/pulls/comments/90767170"},"html":{"href":"https://github.com/Strandol/code-and-magick/pull/11#discussion_r90767170"},"pull_request":{"href":"https://api.github.com/repos/Strandol/code-and-magick/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/Strandol/code-and-magick/pulls/11","id":95993143,"html_url":"https://github.com/Strandol/code-and-magick/pull/11","diff_url":"https://github.com/Strandol/code-and-magick/pull/11.diff","patch_url":"https://github.com/Strandol/code-and-magick/pull/11.patch","issue_url":"https://api.github.com/repos/Strandol/code-and-magick/issues/11","number":11,"state":"open","locked":false,"title":"Module3 task1","user":{"login":"Strandol","id":23364749,"avatar_url":"https://avatars.githubusercontent.com/u/23364749?v=3","gravatar_id":"","url":"https://api.github.com/users/Strandol","html_url":"https://github.com/Strandol","followers_url":"https://api.github.com/users/Strandol/followers","following_url":"https://api.github.com/users/Strandol/following{/other_user}","gists_url":"https://api.github.com/users/Strandol/gists{/gist_id}","starred_url":"https://api.github.com/users/Strandol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Strandol/subscriptions","organizations_url":"https://api.github.com/users/Strandol/orgs","repos_url":"https://api.github.com/users/Strandol/repos","events_url":"https://api.github.com/users/Strandol/events{/privacy}","received_events_url":"https://api.github.com/users/Strandol/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-11-30T23:07:47Z","updated_at":"2016-12-03T23:23:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f5a845fd137988699b83251d6647c1fda1b62403","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Strandol/code-and-magick/pulls/11/commits","review_comments_url":"https://api.github.com/repos/Strandol/code-and-magick/pulls/11/comments","review_comment_url":"https://api.github.com/repos/Strandol/code-and-magick/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Strandol/code-and-magick/issues/11/comments","statuses_url":"https://api.github.com/repos/Strandol/code-and-magick/statuses/5c8520bfc765ea90b0ebb01c7d7940dda342658a","head":{"label":"Strandol:module3-task1","ref":"module3-task1","sha":"5c8520bfc765ea90b0ebb01c7d7940dda342658a","user":{"login":"Strandol","id":23364749,"avatar_url":"https://avatars.githubusercontent.com/u/23364749?v=3","gravatar_id":"","url":"https://api.github.com/users/Strandol","html_url":"https://github.com/Strandol","followers_url":"https://api.github.com/users/Strandol/followers","following_url":"https://api.github.com/users/Strandol/following{/other_user}","gists_url":"https://api.github.com/users/Strandol/gists{/gist_id}","starred_url":"https://api.github.com/users/Strandol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Strandol/subscriptions","organizations_url":"https://api.github.com/users/Strandol/orgs","repos_url":"https://api.github.com/users/Strandol/repos","events_url":"https://api.github.com/users/Strandol/events{/privacy}","received_events_url":"https://api.github.com/users/Strandol/received_events","type":"User","site_admin":false},"repo":{"id":74512982,"name":"code-and-magick","full_name":"Strandol/code-and-magick","owner":{"login":"Strandol","id":23364749,"avatar_url":"https://avatars.githubusercontent.com/u/23364749?v=3","gravatar_id":"","url":"https://api.github.com/users/Strandol","html_url":"https://github.com/Strandol","followers_url":"https://api.github.com/users/Strandol/followers","following_url":"https://api.github.com/users/Strandol/following{/other_user}","gists_url":"https://api.github.com/users/Strandol/gists{/gist_id}","starred_url":"https://api.github.com/users/Strandol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Strandol/subscriptions","organizations_url":"https://api.github.com/users/Strandol/orgs","repos_url":"https://api.github.com/users/Strandol/repos","events_url":"https://api.github.com/users/Strandol/events{/privacy}","received_events_url":"https://api.github.com/users/Strandol/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Strandol/code-and-magick","description":null,"fork":false,"url":"https://api.github.com/repos/Strandol/code-and-magick","forks_url":"https://api.github.com/repos/Strandol/code-and-magick/forks","keys_url":"https://api.github.com/repos/Strandol/code-and-magick/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Strandol/code-and-magick/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Strandol/code-and-magick/teams","hooks_url":"https://api.github.com/repos/Strandol/code-and-magick/hooks","issue_events_url":"https://api.github.com/repos/Strandol/code-and-magick/issues/events{/number}","events_url":"https://api.github.com/repos/Strandol/code-and-magick/events","assignees_url":"https://api.github.com/repos/Strandol/code-and-magick/assignees{/user}","branches_url":"https://api.github.com/repos/Strandol/code-and-magick/branches{/branch}","tags_url":"https://api.github.com/repos/Strandol/code-and-magick/tags","blobs_url":"https://api.github.com/repos/Strandol/code-and-magick/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Strandol/code-and-magick/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Strandol/code-and-magick/git/refs{/sha}","trees_url":"https://api.github.com/repos/Strandol/code-and-magick/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Strandol/code-and-magick/statuses/{sha}","languages_url":"https://api.github.com/repos/Strandol/code-and-magick/languages","stargazers_url":"https://api.github.com/repos/Strandol/code-and-magick/stargazers","contributors_url":"https://api.github.com/repos/Strandol/code-and-magick/contributors","subscribers_url":"https://api.github.com/repos/Strandol/code-and-magick/subscribers","subscription_url":"https://api.github.com/repos/Strandol/code-and-magick/subscription","commits_url":"https://api.github.com/repos/Strandol/code-and-magick/commits{/sha}","git_commits_url":"https://api.github.com/repos/Strandol/code-and-magick/git/commits{/sha}","comments_url":"https://api.github.com/repos/Strandol/code-and-magick/comments{/number}","issue_comment_url":"https://api.github.com/repos/Strandol/code-and-magick/issues/comments{/number}","contents_url":"https://api.github.com/repos/Strandol/code-and-magick/contents/{+path}","compare_url":"https://api.github.com/repos/Strandol/code-and-magick/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Strandol/code-and-magick/merges","archive_url":"https://api.github.com/repos/Strandol/code-and-magick/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Strandol/code-and-magick/downloads","issues_url":"https://api.github.com/repos/Strandol/code-and-magick/issues{/number}","pulls_url":"https://api.github.com/repos/Strandol/code-and-magick/pulls{/number}","milestones_url":"https://api.github.com/repos/Strandol/code-and-magick/milestones{/number}","notifications_url":"https://api.github.com/repos/Strandol/code-and-magick/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Strandol/code-and-magick/labels{/name}","releases_url":"https://api.github.com/repos/Strandol/code-and-magick/releases{/id}","deployments_url":"https://api.github.com/repos/Strandol/code-and-magick/deployments","created_at":"2016-11-22T21:03:43Z","updated_at":"2016-11-29T22:24:34Z","pushed_at":"2016-11-30T23:08:41Z","git_url":"git://github.com/Strandol/code-and-magick.git","ssh_url":"git@github.com:Strandol/code-and-magick.git","clone_url":"https://github.com/Strandol/code-and-magick.git","svn_url":"https://github.com/Strandol/code-and-magick","homepage":null,"size":1086,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"Strandol:master","ref":"master","sha":"4aacd0d8f7603c5d3b375dfce7ff488faf130e5e","user":{"login":"Strandol","id":23364749,"avatar_url":"https://avatars.githubusercontent.com/u/23364749?v=3","gravatar_id":"","url":"https://api.github.com/users/Strandol","html_url":"https://github.com/Strandol","followers_url":"https://api.github.com/users/Strandol/followers","following_url":"https://api.github.com/users/Strandol/following{/other_user}","gists_url":"https://api.github.com/users/Strandol/gists{/gist_id}","starred_url":"https://api.github.com/users/Strandol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Strandol/subscriptions","organizations_url":"https://api.github.com/users/Strandol/orgs","repos_url":"https://api.github.com/users/Strandol/repos","events_url":"https://api.github.com/users/Strandol/events{/privacy}","received_events_url":"https://api.github.com/users/Strandol/received_events","type":"User","site_admin":false},"repo":{"id":74512982,"name":"code-and-magick","full_name":"Strandol/code-and-magick","owner":{"login":"Strandol","id":23364749,"avatar_url":"https://avatars.githubusercontent.com/u/23364749?v=3","gravatar_id":"","url":"https://api.github.com/users/Strandol","html_url":"https://github.com/Strandol","followers_url":"https://api.github.com/users/Strandol/followers","following_url":"https://api.github.com/users/Strandol/following{/other_user}","gists_url":"https://api.github.com/users/Strandol/gists{/gist_id}","starred_url":"https://api.github.com/users/Strandol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Strandol/subscriptions","organizations_url":"https://api.github.com/users/Strandol/orgs","repos_url":"https://api.github.com/users/Strandol/repos","events_url":"https://api.github.com/users/Strandol/events{/privacy}","received_events_url":"https://api.github.com/users/Strandol/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Strandol/code-and-magick","description":null,"fork":false,"url":"https://api.github.com/repos/Strandol/code-and-magick","forks_url":"https://api.github.com/repos/Strandol/code-and-magick/forks","keys_url":"https://api.github.com/repos/Strandol/code-and-magick/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Strandol/code-and-magick/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Strandol/code-and-magick/teams","hooks_url":"https://api.github.com/repos/Strandol/code-and-magick/hooks","issue_events_url":"https://api.github.com/repos/Strandol/code-and-magick/issues/events{/number}","events_url":"https://api.github.com/repos/Strandol/code-and-magick/events","assignees_url":"https://api.github.com/repos/Strandol/code-and-magick/assignees{/user}","branches_url":"https://api.github.com/repos/Strandol/code-and-magick/branches{/branch}","tags_url":"https://api.github.com/repos/Strandol/code-and-magick/tags","blobs_url":"https://api.github.com/repos/Strandol/code-and-magick/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Strandol/code-and-magick/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Strandol/code-and-magick/git/refs{/sha}","trees_url":"https://api.github.com/repos/Strandol/code-and-magick/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Strandol/code-and-magick/statuses/{sha}","languages_url":"https://api.github.com/repos/Strandol/code-and-magick/languages","stargazers_url":"https://api.github.com/repos/Strandol/code-and-magick/stargazers","contributors_url":"https://api.github.com/repos/Strandol/code-and-magick/contributors","subscribers_url":"https://api.github.com/repos/Strandol/code-and-magick/subscribers","subscription_url":"https://api.github.com/repos/Strandol/code-and-magick/subscription","commits_url":"https://api.github.com/repos/Strandol/code-and-magick/commits{/sha}","git_commits_url":"https://api.github.com/repos/Strandol/code-and-magick/git/commits{/sha}","comments_url":"https://api.github.com/repos/Strandol/code-and-magick/comments{/number}","issue_comment_url":"https://api.github.com/repos/Strandol/code-and-magick/issues/comments{/number}","contents_url":"https://api.github.com/repos/Strandol/code-and-magick/contents/{+path}","compare_url":"https://api.github.com/repos/Strandol/code-and-magick/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Strandol/code-and-magick/merges","archive_url":"https://api.github.com/repos/Strandol/code-and-magick/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Strandol/code-and-magick/downloads","issues_url":"https://api.github.com/repos/Strandol/code-and-magick/issues{/number}","pulls_url":"https://api.github.com/repos/Strandol/code-and-magick/pulls{/number}","milestones_url":"https://api.github.com/repos/Strandol/code-and-magick/milestones{/number}","notifications_url":"https://api.github.com/repos/Strandol/code-and-magick/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Strandol/code-and-magick/labels{/name}","releases_url":"https://api.github.com/repos/Strandol/code-and-magick/releases{/id}","deployments_url":"https://api.github.com/repos/Strandol/code-and-magick/deployments","created_at":"2016-11-22T21:03:43Z","updated_at":"2016-11-29T22:24:34Z","pushed_at":"2016-11-30T23:08:41Z","git_url":"git://github.com/Strandol/code-and-magick.git","ssh_url":"git@github.com:Strandol/code-and-magick.git","clone_url":"https://github.com/Strandol/code-and-magick.git","svn_url":"https://github.com/Strandol/code-and-magick","homepage":null,"size":1086,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Strandol/code-and-magick/pulls/11"},"html":{"href":"https://github.com/Strandol/code-and-magick/pull/11"},"issue":{"href":"https://api.github.com/repos/Strandol/code-and-magick/issues/11"},"comments":{"href":"https://api.github.com/repos/Strandol/code-and-magick/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/Strandol/code-and-magick/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/Strandol/code-and-magick/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Strandol/code-and-magick/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/Strandol/code-and-magick/statuses/5c8520bfc765ea90b0ebb01c7d7940dda342658a"}}}}
{"actor":{"display_login":"DudaGod"}}