{"action":"created","comment":{"url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/pulls/comments/77962758","id":77962758,"diff_hunk":"@@ -13,13 +19,57 @@ module.exports = Marionette.LayoutView.extend({\n         answers: '#answers'\n     },\n     ui: {\n-        c_count: '#count'\n+        c_count: '#count',\n+        newCommentButton: '.new-comment-notification'\n     },\n+\n+    events: {\n+        'click @ui.newCommentButton': 'showNewComments'\n+    },\n+\n+\n+    initialize: function () {\n+        this.listenTo(Radio.channel('votesChannel'), 'setCommentsCount' + this.options.voteModel.id, function (n) {\n+            this.ui.c_count.text(n + ' Comments');\n+        });\n+\n+        socketCommentClient.bind('VoteComments', this.options.voteModel.id);\n+    },\n+\n+    onBeforeDestroy: function () {\n+        this.stopListening();\n+        socketCommentClient.unbind('VoteComments', this.options.voteModel.id);\n+    },\n+\n+    onShow: function () {\n+        this.addedCommentsCollection = new CommentsCollection([], {parentUrl: ''});\n+\n+        var self = this;\n+        this.collection.listenTo(Radio.channel('VoteComments'),","path":"resources/assets/js/app/views/votes/ShowVote.js","position":46,"original_position":46,"commit_id":"c11175c66081e550d3e3d2c6b1739a426d1cd7da","original_commit_id":"c11175c66081e550d3e3d2c6b1739a426d1cd7da","user":{"login":"sokolnikov911","id":11427142,"avatar_url":"https://avatars.githubusercontent.com/u/11427142?v=3","gravatar_id":"","url":"https://api.github.com/users/sokolnikov911","html_url":"https://github.com/sokolnikov911","followers_url":"https://api.github.com/users/sokolnikov911/followers","following_url":"https://api.github.com/users/sokolnikov911/following{/other_user}","gists_url":"https://api.github.com/users/sokolnikov911/gists{/gist_id}","starred_url":"https://api.github.com/users/sokolnikov911/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sokolnikov911/subscriptions","organizations_url":"https://api.github.com/users/sokolnikov911/orgs","repos_url":"https://api.github.com/users/sokolnikov911/repos","events_url":"https://api.github.com/users/sokolnikov911/events{/privacy}","received_events_url":"https://api.github.com/users/sokolnikov911/received_events","type":"User","site_admin":false},"body":"done","created_at":"2016-09-08T08:13:08Z","updated_at":"2016-09-08T08:13:08Z","html_url":"https://github.com/BinaryStudioAcademy/bsa-2016-forum/pull/237#discussion_r77962758","pull_request_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/pulls/237","_links":{"self":{"href":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/pulls/comments/77962758"},"html":{"href":"https://github.com/BinaryStudioAcademy/bsa-2016-forum/pull/237#discussion_r77962758"},"pull_request":{"href":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/pulls/237"}}},"pull_request":{"url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/pulls/237","id":83893988,"html_url":"https://github.com/BinaryStudioAcademy/bsa-2016-forum/pull/237","diff_url":"https://github.com/BinaryStudioAcademy/bsa-2016-forum/pull/237.diff","patch_url":"https://github.com/BinaryStudioAcademy/bsa-2016-forum/pull/237.patch","issue_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/issues/237","number":237,"state":"closed","locked":false,"title":"Ps/feature realtime vote comments","user":{"login":"sokolnikov911","id":11427142,"avatar_url":"https://avatars.githubusercontent.com/u/11427142?v=3","gravatar_id":"","url":"https://api.github.com/users/sokolnikov911","html_url":"https://github.com/sokolnikov911","followers_url":"https://api.github.com/users/sokolnikov911/followers","following_url":"https://api.github.com/users/sokolnikov911/following{/other_user}","gists_url":"https://api.github.com/users/sokolnikov911/gists{/gist_id}","starred_url":"https://api.github.com/users/sokolnikov911/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sokolnikov911/subscriptions","organizations_url":"https://api.github.com/users/sokolnikov911/orgs","repos_url":"https://api.github.com/users/sokolnikov911/repos","events_url":"https://api.github.com/users/sokolnikov911/events{/privacy}","received_events_url":"https://api.github.com/users/sokolnikov911/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-09-03T12:04:23Z","updated_at":"2016-09-08T08:13:08Z","closed_at":"2016-09-08T07:31:18Z","merged_at":null,"merge_commit_sha":"625470ecb631f67a2ae84a3e590c43a10526748f","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/pulls/237/commits","review_comments_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/pulls/237/comments","review_comment_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/pulls/comments{/number}","comments_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/issues/237/comments","statuses_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/statuses/c11175c66081e550d3e3d2c6b1739a426d1cd7da","head":{"label":"BinaryStudioAcademy:ps/feature-realtime-vote-comments","ref":"ps/feature-realtime-vote-comments","sha":"c11175c66081e550d3e3d2c6b1739a426d1cd7da","user":{"login":"BinaryStudioAcademy","id":13114349,"avatar_url":"https://avatars.githubusercontent.com/u/13114349?v=3","gravatar_id":"","url":"https://api.github.com/users/BinaryStudioAcademy","html_url":"https://github.com/BinaryStudioAcademy","followers_url":"https://api.github.com/users/BinaryStudioAcademy/followers","following_url":"https://api.github.com/users/BinaryStudioAcademy/following{/other_user}","gists_url":"https://api.github.com/users/BinaryStudioAcademy/gists{/gist_id}","starred_url":"https://api.github.com/users/BinaryStudioAcademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BinaryStudioAcademy/subscriptions","organizations_url":"https://api.github.com/users/BinaryStudioAcademy/orgs","repos_url":"https://api.github.com/users/BinaryStudioAcademy/repos","events_url":"https://api.github.com/users/BinaryStudioAcademy/events{/privacy}","received_events_url":"https://api.github.com/users/BinaryStudioAcademy/received_events","type":"Organization","site_admin":false},"repo":{"id":65197608,"name":"bsa-2016-forum","full_name":"BinaryStudioAcademy/bsa-2016-forum","owner":{"login":"BinaryStudioAcademy","id":13114349,"avatar_url":"https://avatars.githubusercontent.com/u/13114349?v=3","gravatar_id":"","url":"https://api.github.com/users/BinaryStudioAcademy","html_url":"https://github.com/BinaryStudioAcademy","followers_url":"https://api.github.com/users/BinaryStudioAcademy/followers","following_url":"https://api.github.com/users/BinaryStudioAcademy/following{/other_user}","gists_url":"https://api.github.com/users/BinaryStudioAcademy/gists{/gist_id}","starred_url":"https://api.github.com/users/BinaryStudioAcademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BinaryStudioAcademy/subscriptions","organizations_url":"https://api.github.com/users/BinaryStudioAcademy/orgs","repos_url":"https://api.github.com/users/BinaryStudioAcademy/repos","events_url":"https://api.github.com/users/BinaryStudioAcademy/events{/privacy}","received_events_url":"https://api.github.com/users/BinaryStudioAcademy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/BinaryStudioAcademy/bsa-2016-forum","description":"BSA 2016 PHP Forum project","fork":false,"url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum","forks_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/forks","keys_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/teams","hooks_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/hooks","issue_events_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/issues/events{/number}","events_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/events","assignees_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/assignees{/user}","branches_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/branches{/branch}","tags_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/tags","blobs_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/git/refs{/sha}","trees_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/statuses/{sha}","languages_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/languages","stargazers_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/stargazers","contributors_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/contributors","subscribers_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/subscribers","subscription_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/subscription","commits_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/commits{/sha}","git_commits_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/git/commits{/sha}","comments_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/comments{/number}","issue_comment_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/issues/comments{/number}","contents_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/contents/{+path}","compare_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/merges","archive_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/downloads","issues_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/issues{/number}","pulls_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/pulls{/number}","milestones_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/milestones{/number}","notifications_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/labels{/name}","releases_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/releases{/id}","deployments_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/deployments","created_at":"2016-08-08T11:07:57Z","updated_at":"2016-08-08T12:28:55Z","pushed_at":"2016-09-08T08:12:33Z","git_url":"git://github.com/BinaryStudioAcademy/bsa-2016-forum.git","ssh_url":"git@github.com:BinaryStudioAcademy/bsa-2016-forum.git","clone_url":"https://github.com/BinaryStudioAcademy/bsa-2016-forum.git","svn_url":"https://github.com/BinaryStudioAcademy/bsa-2016-forum","homepage":"","size":3374,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":10,"forks":3,"open_issues":10,"watchers":0,"default_branch":"next"}},"base":{"label":"BinaryStudioAcademy:next","ref":"next","sha":"0929ea2c0fec30f24cf092cb3e3aadc480ca7562","user":{"login":"BinaryStudioAcademy","id":13114349,"avatar_url":"https://avatars.githubusercontent.com/u/13114349?v=3","gravatar_id":"","url":"https://api.github.com/users/BinaryStudioAcademy","html_url":"https://github.com/BinaryStudioAcademy","followers_url":"https://api.github.com/users/BinaryStudioAcademy/followers","following_url":"https://api.github.com/users/BinaryStudioAcademy/following{/other_user}","gists_url":"https://api.github.com/users/BinaryStudioAcademy/gists{/gist_id}","starred_url":"https://api.github.com/users/BinaryStudioAcademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BinaryStudioAcademy/subscriptions","organizations_url":"https://api.github.com/users/BinaryStudioAcademy/orgs","repos_url":"https://api.github.com/users/BinaryStudioAcademy/repos","events_url":"https://api.github.com/users/BinaryStudioAcademy/events{/privacy}","received_events_url":"https://api.github.com/users/BinaryStudioAcademy/received_events","type":"Organization","site_admin":false},"repo":{"id":65197608,"name":"bsa-2016-forum","full_name":"BinaryStudioAcademy/bsa-2016-forum","owner":{"login":"BinaryStudioAcademy","id":13114349,"avatar_url":"https://avatars.githubusercontent.com/u/13114349?v=3","gravatar_id":"","url":"https://api.github.com/users/BinaryStudioAcademy","html_url":"https://github.com/BinaryStudioAcademy","followers_url":"https://api.github.com/users/BinaryStudioAcademy/followers","following_url":"https://api.github.com/users/BinaryStudioAcademy/following{/other_user}","gists_url":"https://api.github.com/users/BinaryStudioAcademy/gists{/gist_id}","starred_url":"https://api.github.com/users/BinaryStudioAcademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BinaryStudioAcademy/subscriptions","organizations_url":"https://api.github.com/users/BinaryStudioAcademy/orgs","repos_url":"https://api.github.com/users/BinaryStudioAcademy/repos","events_url":"https://api.github.com/users/BinaryStudioAcademy/events{/privacy}","received_events_url":"https://api.github.com/users/BinaryStudioAcademy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/BinaryStudioAcademy/bsa-2016-forum","description":"BSA 2016 PHP Forum project","fork":false,"url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum","forks_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/forks","keys_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/teams","hooks_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/hooks","issue_events_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/issues/events{/number}","events_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/events","assignees_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/assignees{/user}","branches_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/branches{/branch}","tags_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/tags","blobs_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/git/refs{/sha}","trees_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/statuses/{sha}","languages_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/languages","stargazers_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/stargazers","contributors_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/contributors","subscribers_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/subscribers","subscription_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/subscription","commits_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/commits{/sha}","git_commits_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/git/commits{/sha}","comments_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/comments{/number}","issue_comment_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/issues/comments{/number}","contents_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/contents/{+path}","compare_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/merges","archive_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/downloads","issues_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/issues{/number}","pulls_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/pulls{/number}","milestones_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/milestones{/number}","notifications_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/labels{/name}","releases_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/releases{/id}","deployments_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/deployments","created_at":"2016-08-08T11:07:57Z","updated_at":"2016-08-08T12:28:55Z","pushed_at":"2016-09-08T08:12:33Z","git_url":"git://github.com/BinaryStudioAcademy/bsa-2016-forum.git","ssh_url":"git@github.com:BinaryStudioAcademy/bsa-2016-forum.git","clone_url":"https://github.com/BinaryStudioAcademy/bsa-2016-forum.git","svn_url":"https://github.com/BinaryStudioAcademy/bsa-2016-forum","homepage":"","size":3374,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":10,"forks":3,"open_issues":10,"watchers":0,"default_branch":"next"}},"_links":{"self":{"href":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/pulls/237"},"html":{"href":"https://github.com/BinaryStudioAcademy/bsa-2016-forum/pull/237"},"issue":{"href":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/issues/237"},"comments":{"href":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/issues/237/comments"},"review_comments":{"href":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/pulls/237/comments"},"review_comment":{"href":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/pulls/237/commits"},"statuses":{"href":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/statuses/c11175c66081e550d3e3d2c6b1739a426d1cd7da"}}}}
{"actor":{"display_login":"sokolnikov911"}}