{"action":"created","comment":{"url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/pulls/comments/74137595","id":74137595,"diff_hunk":"@@ -0,0 +1,192 @@\n+(function () {\n+\n+    function ChatViewModel(params) {\n+        var self = this;\n+        self.userIdentity = params.userIdentity;\n+\n+        self.userList = params.userList;\n+        self.chosenUser = ko.observable();\n+\n+        self.messages = ko.observableArray();\n+        self.currentDialogId = ko.observable();\n+\n+        self.conversationName = ko.observable();\n+        self.conversationsList = ko.observableArray();\n+        self.showConversationForm = ko.observable(false);\n+        self.usersToChoose = ko.observableArray();\n+        self.currentConversation = ko.observable();\n+        self.chosenUsers = ko.observableArray();\n+\n+        self.goToUser = function (user) {","path":"knockout/components/chat.js","position":20,"original_position":20,"commit_id":"fb8be52fa473933848b4a97ae0a4e2d51edce64e","original_commit_id":"fb8be52fa473933848b4a97ae0a4e2d51edce64e","user":{"login":"Engelstrom","id":15947902,"avatar_url":"https://avatars.githubusercontent.com/u/15947902?v=3","gravatar_id":"","url":"https://api.github.com/users/Engelstrom","html_url":"https://github.com/Engelstrom","followers_url":"https://api.github.com/users/Engelstrom/followers","following_url":"https://api.github.com/users/Engelstrom/following{/other_user}","gists_url":"https://api.github.com/users/Engelstrom/gists{/gist_id}","starred_url":"https://api.github.com/users/Engelstrom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Engelstrom/subscriptions","organizations_url":"https://api.github.com/users/Engelstrom/orgs","repos_url":"https://api.github.com/users/Engelstrom/repos","events_url":"https://api.github.com/users/Engelstrom/events{/privacy}","received_events_url":"https://api.github.com/users/Engelstrom/received_events","type":"User","site_admin":false},"body":"Оно заработает, просто функций много, и во всех нужно менять self либо подменять вызовы методов.","created_at":"2016-08-09T20:28:01Z","updated_at":"2016-08-09T20:28:01Z","html_url":"https://github.com/Engelstrom/iTechArt-JS/pull/3#discussion_r74137595","pull_request_url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/Engelstrom/iTechArt-JS/pulls/comments/74137595"},"html":{"href":"https://github.com/Engelstrom/iTechArt-JS/pull/3#discussion_r74137595"},"pull_request":{"href":"https://api.github.com/repos/Engelstrom/iTechArt-JS/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/pulls/3","id":80647576,"html_url":"https://github.com/Engelstrom/iTechArt-JS/pull/3","diff_url":"https://github.com/Engelstrom/iTechArt-JS/pull/3.diff","patch_url":"https://github.com/Engelstrom/iTechArt-JS/pull/3.patch","issue_url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/issues/3","number":3,"state":"open","locked":false,"title":"Knockout","user":{"login":"Engelstrom","id":15947902,"avatar_url":"https://avatars.githubusercontent.com/u/15947902?v=3","gravatar_id":"","url":"https://api.github.com/users/Engelstrom","html_url":"https://github.com/Engelstrom","followers_url":"https://api.github.com/users/Engelstrom/followers","following_url":"https://api.github.com/users/Engelstrom/following{/other_user}","gists_url":"https://api.github.com/users/Engelstrom/gists{/gist_id}","starred_url":"https://api.github.com/users/Engelstrom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Engelstrom/subscriptions","organizations_url":"https://api.github.com/users/Engelstrom/orgs","repos_url":"https://api.github.com/users/Engelstrom/repos","events_url":"https://api.github.com/users/Engelstrom/events{/privacy}","received_events_url":"https://api.github.com/users/Engelstrom/received_events","type":"User","site_admin":false},"body":"Не сделал промисы и require","created_at":"2016-08-09T16:01:05Z","updated_at":"2016-08-09T20:28:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a92c2fc1b199b69cc38b39d4668b2ddc2b74d83b","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/pulls/3/commits","review_comments_url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/pulls/3/comments","review_comment_url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/issues/3/comments","statuses_url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/statuses/fb8be52fa473933848b4a97ae0a4e2d51edce64e","head":{"label":"Engelstrom:knockout","ref":"knockout","sha":"fb8be52fa473933848b4a97ae0a4e2d51edce64e","user":{"login":"Engelstrom","id":15947902,"avatar_url":"https://avatars.githubusercontent.com/u/15947902?v=3","gravatar_id":"","url":"https://api.github.com/users/Engelstrom","html_url":"https://github.com/Engelstrom","followers_url":"https://api.github.com/users/Engelstrom/followers","following_url":"https://api.github.com/users/Engelstrom/following{/other_user}","gists_url":"https://api.github.com/users/Engelstrom/gists{/gist_id}","starred_url":"https://api.github.com/users/Engelstrom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Engelstrom/subscriptions","organizations_url":"https://api.github.com/users/Engelstrom/orgs","repos_url":"https://api.github.com/users/Engelstrom/repos","events_url":"https://api.github.com/users/Engelstrom/events{/privacy}","received_events_url":"https://api.github.com/users/Engelstrom/received_events","type":"User","site_admin":false},"repo":{"id":63932313,"name":"iTechArt-JS","full_name":"Engelstrom/iTechArt-JS","owner":{"login":"Engelstrom","id":15947902,"avatar_url":"https://avatars.githubusercontent.com/u/15947902?v=3","gravatar_id":"","url":"https://api.github.com/users/Engelstrom","html_url":"https://github.com/Engelstrom","followers_url":"https://api.github.com/users/Engelstrom/followers","following_url":"https://api.github.com/users/Engelstrom/following{/other_user}","gists_url":"https://api.github.com/users/Engelstrom/gists{/gist_id}","starred_url":"https://api.github.com/users/Engelstrom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Engelstrom/subscriptions","organizations_url":"https://api.github.com/users/Engelstrom/orgs","repos_url":"https://api.github.com/users/Engelstrom/repos","events_url":"https://api.github.com/users/Engelstrom/events{/privacy}","received_events_url":"https://api.github.com/users/Engelstrom/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Engelstrom/iTechArt-JS","description":"JavaScript","fork":false,"url":"https://api.github.com/repos/Engelstrom/iTechArt-JS","forks_url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/forks","keys_url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/teams","hooks_url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/hooks","issue_events_url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/issues/events{/number}","events_url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/events","assignees_url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/assignees{/user}","branches_url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/branches{/branch}","tags_url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/tags","blobs_url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/git/refs{/sha}","trees_url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/statuses/{sha}","languages_url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/languages","stargazers_url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/stargazers","contributors_url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/contributors","subscribers_url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/subscribers","subscription_url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/subscription","commits_url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/commits{/sha}","git_commits_url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/git/commits{/sha}","comments_url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/comments{/number}","issue_comment_url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/issues/comments{/number}","contents_url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/contents/{+path}","compare_url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/merges","archive_url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/downloads","issues_url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/issues{/number}","pulls_url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/pulls{/number}","milestones_url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/milestones{/number}","notifications_url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/labels{/name}","releases_url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/releases{/id}","deployments_url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/deployments","created_at":"2016-07-22T07:17:11Z","updated_at":"2016-07-27T13:35:33Z","pushed_at":"2016-08-09T18:04:15Z","git_url":"git://github.com/Engelstrom/iTechArt-JS.git","ssh_url":"git@github.com:Engelstrom/iTechArt-JS.git","clone_url":"https://github.com/Engelstrom/iTechArt-JS.git","svn_url":"https://github.com/Engelstrom/iTechArt-JS","homepage":null,"size":211,"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":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"Engelstrom:master","ref":"master","sha":"546f6dbbcd94571a25b3178b6aaae0df9f062e90","user":{"login":"Engelstrom","id":15947902,"avatar_url":"https://avatars.githubusercontent.com/u/15947902?v=3","gravatar_id":"","url":"https://api.github.com/users/Engelstrom","html_url":"https://github.com/Engelstrom","followers_url":"https://api.github.com/users/Engelstrom/followers","following_url":"https://api.github.com/users/Engelstrom/following{/other_user}","gists_url":"https://api.github.com/users/Engelstrom/gists{/gist_id}","starred_url":"https://api.github.com/users/Engelstrom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Engelstrom/subscriptions","organizations_url":"https://api.github.com/users/Engelstrom/orgs","repos_url":"https://api.github.com/users/Engelstrom/repos","events_url":"https://api.github.com/users/Engelstrom/events{/privacy}","received_events_url":"https://api.github.com/users/Engelstrom/received_events","type":"User","site_admin":false},"repo":{"id":63932313,"name":"iTechArt-JS","full_name":"Engelstrom/iTechArt-JS","owner":{"login":"Engelstrom","id":15947902,"avatar_url":"https://avatars.githubusercontent.com/u/15947902?v=3","gravatar_id":"","url":"https://api.github.com/users/Engelstrom","html_url":"https://github.com/Engelstrom","followers_url":"https://api.github.com/users/Engelstrom/followers","following_url":"https://api.github.com/users/Engelstrom/following{/other_user}","gists_url":"https://api.github.com/users/Engelstrom/gists{/gist_id}","starred_url":"https://api.github.com/users/Engelstrom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Engelstrom/subscriptions","organizations_url":"https://api.github.com/users/Engelstrom/orgs","repos_url":"https://api.github.com/users/Engelstrom/repos","events_url":"https://api.github.com/users/Engelstrom/events{/privacy}","received_events_url":"https://api.github.com/users/Engelstrom/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Engelstrom/iTechArt-JS","description":"JavaScript","fork":false,"url":"https://api.github.com/repos/Engelstrom/iTechArt-JS","forks_url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/forks","keys_url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/teams","hooks_url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/hooks","issue_events_url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/issues/events{/number}","events_url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/events","assignees_url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/assignees{/user}","branches_url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/branches{/branch}","tags_url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/tags","blobs_url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/git/refs{/sha}","trees_url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/statuses/{sha}","languages_url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/languages","stargazers_url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/stargazers","contributors_url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/contributors","subscribers_url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/subscribers","subscription_url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/subscription","commits_url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/commits{/sha}","git_commits_url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/git/commits{/sha}","comments_url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/comments{/number}","issue_comment_url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/issues/comments{/number}","contents_url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/contents/{+path}","compare_url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/merges","archive_url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/downloads","issues_url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/issues{/number}","pulls_url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/pulls{/number}","milestones_url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/milestones{/number}","notifications_url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/labels{/name}","releases_url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/releases{/id}","deployments_url":"https://api.github.com/repos/Engelstrom/iTechArt-JS/deployments","created_at":"2016-07-22T07:17:11Z","updated_at":"2016-07-27T13:35:33Z","pushed_at":"2016-08-09T18:04:15Z","git_url":"git://github.com/Engelstrom/iTechArt-JS.git","ssh_url":"git@github.com:Engelstrom/iTechArt-JS.git","clone_url":"https://github.com/Engelstrom/iTechArt-JS.git","svn_url":"https://github.com/Engelstrom/iTechArt-JS","homepage":null,"size":211,"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":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Engelstrom/iTechArt-JS/pulls/3"},"html":{"href":"https://github.com/Engelstrom/iTechArt-JS/pull/3"},"issue":{"href":"https://api.github.com/repos/Engelstrom/iTechArt-JS/issues/3"},"comments":{"href":"https://api.github.com/repos/Engelstrom/iTechArt-JS/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/Engelstrom/iTechArt-JS/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/Engelstrom/iTechArt-JS/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Engelstrom/iTechArt-JS/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/Engelstrom/iTechArt-JS/statuses/fb8be52fa473933848b4a97ae0a4e2d51edce64e"}}}}
{"actor":{"display_login":"Engelstrom"}}