{"action":"created","comment":{"url":"https://api.github.com/repos/board-games-calendar/board-games-calendar/pulls/comments/24288861","id":24288861,"diff_hunk":"@@ -10,11 +10,69 @@ define(function (require) {\n \n   return UserProfileController;\n \n-  function UserProfileController(user) {\n+  function UserProfileController($scope, user, dgUserService) {\n     var vm = this;\n-    vm.user = user;\n-  }\n+    vm.userData = angular.extend({\n+      oldPassword: \"\",\n+      newPassword: \"\",\n+      repeatPassword: \"\"\n+    }, user.data);\n+    vm.userCashed = angular.copy(vm.userData);\n+    vm.submitDisabled = true;\n+    vm.profileValidate = profileValidate;\n+    vm.updateUser = updateUser;\n+    vm.cancel = cancel;\n+    vm.emailConfirmation = emailConfirmation;\n+    vm.passwordCheck = true;\n+\n+    $scope.$watch(function () {","path":"client/static/app/modules/user/controllers/user-profile.controller.js","position":31,"original_position":31,"commit_id":"aa14256a2383f1d9cc3a131db1f180ba802d2f9e","original_commit_id":"aa14256a2383f1d9cc3a131db1f180ba802d2f9e","user":{"login":"Vasso","id":483525,"avatar_url":"https://avatars.githubusercontent.com/u/483525?v=3","gravatar_id":"","url":"https://api.github.com/users/Vasso","html_url":"https://github.com/Vasso","followers_url":"https://api.github.com/users/Vasso/followers","following_url":"https://api.github.com/users/Vasso/following{/other_user}","gists_url":"https://api.github.com/users/Vasso/gists{/gist_id}","starred_url":"https://api.github.com/users/Vasso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vasso/subscriptions","organizations_url":"https://api.github.com/users/Vasso/orgs","repos_url":"https://api.github.com/users/Vasso/repos","events_url":"https://api.github.com/users/Vasso/events{/privacy}","received_events_url":"https://api.github.com/users/Vasso/received_events","type":"User","site_admin":false},"body":"u don't need whitespace between function and brackets \r\nfunction() { ","created_at":"2015-02-07T11:13:05Z","updated_at":"2015-02-07T11:13:05Z","html_url":"https://github.com/board-games-calendar/board-games-calendar/pull/110#discussion_r24288861","pull_request_url":"https://api.github.com/repos/board-games-calendar/board-games-calendar/pulls/110","_links":{"self":{"href":"https://api.github.com/repos/board-games-calendar/board-games-calendar/pulls/comments/24288861"},"html":{"href":"https://github.com/board-games-calendar/board-games-calendar/pull/110#discussion_r24288861"},"pull_request":{"href":"https://api.github.com/repos/board-games-calendar/board-games-calendar/pulls/110"}}},"pull_request":{"url":"https://api.github.com/repos/board-games-calendar/board-games-calendar/pulls/110","id":28744476,"html_url":"https://github.com/board-games-calendar/board-games-calendar/pull/110","diff_url":"https://github.com/board-games-calendar/board-games-calendar/pull/110.diff","patch_url":"https://github.com/board-games-calendar/board-games-calendar/pull/110.patch","issue_url":"https://api.github.com/repos/board-games-calendar/board-games-calendar/issues/110","number":110,"state":"open","locked":false,"title":"User profile#13","user":{"login":"andrew-demidenko","id":10242138,"avatar_url":"https://avatars.githubusercontent.com/u/10242138?v=3","gravatar_id":"","url":"https://api.github.com/users/andrew-demidenko","html_url":"https://github.com/andrew-demidenko","followers_url":"https://api.github.com/users/andrew-demidenko/followers","following_url":"https://api.github.com/users/andrew-demidenko/following{/other_user}","gists_url":"https://api.github.com/users/andrew-demidenko/gists{/gist_id}","starred_url":"https://api.github.com/users/andrew-demidenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrew-demidenko/subscriptions","organizations_url":"https://api.github.com/users/andrew-demidenko/orgs","repos_url":"https://api.github.com/users/andrew-demidenko/repos","events_url":"https://api.github.com/users/andrew-demidenko/events{/privacy}","received_events_url":"https://api.github.com/users/andrew-demidenko/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-02-05T17:36:36Z","updated_at":"2015-02-07T11:13:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a5bda99274c9c1c356e83b2a18798b3f7ab01102","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/board-games-calendar/board-games-calendar/pulls/110/commits","review_comments_url":"https://api.github.com/repos/board-games-calendar/board-games-calendar/pulls/110/comments","review_comment_url":"https://api.github.com/repos/board-games-calendar/board-games-calendar/pulls/comments/{number}","comments_url":"https://api.github.com/repos/board-games-calendar/board-games-calendar/issues/110/comments","statuses_url":"https://api.github.com/repos/board-games-calendar/board-games-calendar/statuses/aa14256a2383f1d9cc3a131db1f180ba802d2f9e","head":{"label":"board-games-calendar:user-profile#13","ref":"user-profile#13","sha":"aa14256a2383f1d9cc3a131db1f180ba802d2f9e","user":{"login":"board-games-calendar","id":9413299,"avatar_url":"https://avatars.githubusercontent.com/u/9413299?v=3","gravatar_id":"","url":"https://api.github.com/users/board-games-calendar","html_url":"https://github.com/board-games-calendar","followers_url":"https://api.github.com/users/board-games-calendar/followers","following_url":"https://api.github.com/users/board-games-calendar/following{/other_user}","gists_url":"https://api.github.com/users/board-games-calendar/gists{/gist_id}","starred_url":"https://api.github.com/users/board-games-calendar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/board-games-calendar/subscriptions","organizations_url":"https://api.github.com/users/board-games-calendar/orgs","repos_url":"https://api.github.com/users/board-games-calendar/repos","events_url":"https://api.github.com/users/board-games-calendar/events{/privacy}","received_events_url":"https://api.github.com/users/board-games-calendar/received_events","type":"Organization","site_admin":false},"repo":{"id":25809157,"name":"board-games-calendar","full_name":"board-games-calendar/board-games-calendar","owner":{"login":"board-games-calendar","id":9413299,"avatar_url":"https://avatars.githubusercontent.com/u/9413299?v=3","gravatar_id":"","url":"https://api.github.com/users/board-games-calendar","html_url":"https://github.com/board-games-calendar","followers_url":"https://api.github.com/users/board-games-calendar/followers","following_url":"https://api.github.com/users/board-games-calendar/following{/other_user}","gists_url":"https://api.github.com/users/board-games-calendar/gists{/gist_id}","starred_url":"https://api.github.com/users/board-games-calendar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/board-games-calendar/subscriptions","organizations_url":"https://api.github.com/users/board-games-calendar/orgs","repos_url":"https://api.github.com/users/board-games-calendar/repos","events_url":"https://api.github.com/users/board-games-calendar/events{/privacy}","received_events_url":"https://api.github.com/users/board-games-calendar/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/board-games-calendar/board-games-calendar","description":"Board games calendar web app. Angular.js, Node.js stack","fork":false,"url":"https://api.github.com/repos/board-games-calendar/board-games-calendar","forks_url":"https://api.github.com/repos/board-games-calendar/board-games-calendar/forks","keys_url":"https://api.github.com/repos/board-games-calendar/board-games-calendar/keys{/key_id}","collaborators_url":"https://api.github.com/repos/board-games-calendar/board-games-calendar/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/board-games-calendar/board-games-calendar/teams","hooks_url":"https://api.github.com/repos/board-games-calendar/board-games-calendar/hooks","issue_events_url":"https://api.github.com/repos/board-games-calendar/board-games-calendar/issues/events{/number}","events_url":"https://api.github.com/repos/board-games-calendar/board-games-calendar/events","assignees_url":"https://api.github.com/repos/board-games-calendar/board-games-calendar/assignees{/user}","branches_url":"https://api.github.com/repos/board-games-calendar/board-games-calendar/branches{/branch}","tags_url":"https://api.github.com/repos/board-games-calendar/board-games-calendar/tags","blobs_url":"https://api.github.com/repos/board-games-calendar/board-games-calendar/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/board-games-calendar/board-games-calendar/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/board-games-calendar/board-games-calendar/git/refs{/sha}","trees_url":"https://api.github.com/repos/board-games-calendar/board-games-calendar/git/trees{/sha}","statuses_url":"https://api.github.com/repos/board-games-calendar/board-games-calendar/statuses/{sha}","languages_url":"https://api.github.com/repos/board-games-calendar/board-games-calendar/languages","stargazers_url":"https://api.github.com/repos/board-games-calendar/board-games-calendar/stargazers","contributors_url":"https://api.github.com/repos/board-games-calendar/board-games-calendar/contributors","subscribers_url":"https://api.github.com/repos/board-games-calendar/board-games-calendar/subscribers","subscription_url":"https://api.github.com/repos/board-games-calendar/board-games-calendar/subscription","commits_url":"https://api.github.com/repos/board-games-calendar/board-games-calendar/commits{/sha}","git_commits_url":"https://api.github.com/repos/board-games-calendar/board-games-calendar/git/commits{/sha}","comments_url":"https://api.github.com/repos/board-games-calendar/board-games-calendar/comments{/number}","issue_comment_url":"https://api.github.com/repos/board-games-calendar/board-games-calendar/issues/comments/{number}","contents_url":"https://api.github.com/repos/board-games-calendar/board-games-calendar/contents/{+path}","compare_url":"https://api.github.com/repos/board-games-calendar/board-games-calendar/compare/{base}...{head}","merges_url":"https://api.github.com/repos/board-games-calendar/board-games-calendar/merges","archive_url":"https://api.github.com/repos/board-games-calendar/board-games-calendar/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/board-games-calendar/board-games-calendar/downloads","issues_url":"https://api.github.com/repos/board-games-calendar/board-games-calendar/issues{/number}","pulls_url":"https://api.github.com/repos/board-games-calendar/board-games-calendar/pulls{/number}","milestones_url":"https://api.github.com/repos/board-games-calendar/board-games-calendar/milestones{/number}","notifications_url":"https://api.github.com/repos/board-games-calendar/board-games-calendar/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/board-games-calendar/board-games-calendar/labels{/name}","releases_url":"https://api.github.com/repos/board-games-calendar/board-games-calendar/releases{/id}","created_at":"2014-10-27T08:11:00Z","updated_at":"2015-02-06T23:56:25Z","pushed_at":"2015-02-07T11:04:02Z","git_url":"git://github.com/board-games-calendar/board-games-calendar.git","ssh_url":"git@github.com:board-games-calendar/board-games-calendar.git","clone_url":"https://github.com/board-games-calendar/board-games-calendar.git","svn_url":"https://github.com/board-games-calendar/board-games-calendar","homepage":"","size":9739,"stargazers_count":7,"watchers_count":7,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":30,"forks":2,"open_issues":30,"watchers":7,"default_branch":"master"}},"base":{"label":"board-games-calendar:master","ref":"master","sha":"0710a0ef74ce26138fe842c54f8ab468a6aa2d7c","user":{"login":"board-games-calendar","id":9413299,"avatar_url":"https://avatars.githubusercontent.com/u/9413299?v=3","gravatar_id":"","url":"https://api.github.com/users/board-games-calendar","html_url":"https://github.com/board-games-calendar","followers_url":"https://api.github.com/users/board-games-calendar/followers","following_url":"https://api.github.com/users/board-games-calendar/following{/other_user}","gists_url":"https://api.github.com/users/board-games-calendar/gists{/gist_id}","starred_url":"https://api.github.com/users/board-games-calendar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/board-games-calendar/subscriptions","organizations_url":"https://api.github.com/users/board-games-calendar/orgs","repos_url":"https://api.github.com/users/board-games-calendar/repos","events_url":"https://api.github.com/users/board-games-calendar/events{/privacy}","received_events_url":"https://api.github.com/users/board-games-calendar/received_events","type":"Organization","site_admin":false},"repo":{"id":25809157,"name":"board-games-calendar","full_name":"board-games-calendar/board-games-calendar","owner":{"login":"board-games-calendar","id":9413299,"avatar_url":"https://avatars.githubusercontent.com/u/9413299?v=3","gravatar_id":"","url":"https://api.github.com/users/board-games-calendar","html_url":"https://github.com/board-games-calendar","followers_url":"https://api.github.com/users/board-games-calendar/followers","following_url":"https://api.github.com/users/board-games-calendar/following{/other_user}","gists_url":"https://api.github.com/users/board-games-calendar/gists{/gist_id}","starred_url":"https://api.github.com/users/board-games-calendar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/board-games-calendar/subscriptions","organizations_url":"https://api.github.com/users/board-games-calendar/orgs","repos_url":"https://api.github.com/users/board-games-calendar/repos","events_url":"https://api.github.com/users/board-games-calendar/events{/privacy}","received_events_url":"https://api.github.com/users/board-games-calendar/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/board-games-calendar/board-games-calendar","description":"Board games calendar web app. Angular.js, Node.js stack","fork":false,"url":"https://api.github.com/repos/board-games-calendar/board-games-calendar","forks_url":"https://api.github.com/repos/board-games-calendar/board-games-calendar/forks","keys_url":"https://api.github.com/repos/board-games-calendar/board-games-calendar/keys{/key_id}","collaborators_url":"https://api.github.com/repos/board-games-calendar/board-games-calendar/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/board-games-calendar/board-games-calendar/teams","hooks_url":"https://api.github.com/repos/board-games-calendar/board-games-calendar/hooks","issue_events_url":"https://api.github.com/repos/board-games-calendar/board-games-calendar/issues/events{/number}","events_url":"https://api.github.com/repos/board-games-calendar/board-games-calendar/events","assignees_url":"https://api.github.com/repos/board-games-calendar/board-games-calendar/assignees{/user}","branches_url":"https://api.github.com/repos/board-games-calendar/board-games-calendar/branches{/branch}","tags_url":"https://api.github.com/repos/board-games-calendar/board-games-calendar/tags","blobs_url":"https://api.github.com/repos/board-games-calendar/board-games-calendar/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/board-games-calendar/board-games-calendar/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/board-games-calendar/board-games-calendar/git/refs{/sha}","trees_url":"https://api.github.com/repos/board-games-calendar/board-games-calendar/git/trees{/sha}","statuses_url":"https://api.github.com/repos/board-games-calendar/board-games-calendar/statuses/{sha}","languages_url":"https://api.github.com/repos/board-games-calendar/board-games-calendar/languages","stargazers_url":"https://api.github.com/repos/board-games-calendar/board-games-calendar/stargazers","contributors_url":"https://api.github.com/repos/board-games-calendar/board-games-calendar/contributors","subscribers_url":"https://api.github.com/repos/board-games-calendar/board-games-calendar/subscribers","subscription_url":"https://api.github.com/repos/board-games-calendar/board-games-calendar/subscription","commits_url":"https://api.github.com/repos/board-games-calendar/board-games-calendar/commits{/sha}","git_commits_url":"https://api.github.com/repos/board-games-calendar/board-games-calendar/git/commits{/sha}","comments_url":"https://api.github.com/repos/board-games-calendar/board-games-calendar/comments{/number}","issue_comment_url":"https://api.github.com/repos/board-games-calendar/board-games-calendar/issues/comments/{number}","contents_url":"https://api.github.com/repos/board-games-calendar/board-games-calendar/contents/{+path}","compare_url":"https://api.github.com/repos/board-games-calendar/board-games-calendar/compare/{base}...{head}","merges_url":"https://api.github.com/repos/board-games-calendar/board-games-calendar/merges","archive_url":"https://api.github.com/repos/board-games-calendar/board-games-calendar/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/board-games-calendar/board-games-calendar/downloads","issues_url":"https://api.github.com/repos/board-games-calendar/board-games-calendar/issues{/number}","pulls_url":"https://api.github.com/repos/board-games-calendar/board-games-calendar/pulls{/number}","milestones_url":"https://api.github.com/repos/board-games-calendar/board-games-calendar/milestones{/number}","notifications_url":"https://api.github.com/repos/board-games-calendar/board-games-calendar/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/board-games-calendar/board-games-calendar/labels{/name}","releases_url":"https://api.github.com/repos/board-games-calendar/board-games-calendar/releases{/id}","created_at":"2014-10-27T08:11:00Z","updated_at":"2015-02-06T23:56:25Z","pushed_at":"2015-02-07T11:04:02Z","git_url":"git://github.com/board-games-calendar/board-games-calendar.git","ssh_url":"git@github.com:board-games-calendar/board-games-calendar.git","clone_url":"https://github.com/board-games-calendar/board-games-calendar.git","svn_url":"https://github.com/board-games-calendar/board-games-calendar","homepage":"","size":9739,"stargazers_count":7,"watchers_count":7,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":30,"forks":2,"open_issues":30,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/board-games-calendar/board-games-calendar/pulls/110"},"html":{"href":"https://github.com/board-games-calendar/board-games-calendar/pull/110"},"issue":{"href":"https://api.github.com/repos/board-games-calendar/board-games-calendar/issues/110"},"comments":{"href":"https://api.github.com/repos/board-games-calendar/board-games-calendar/issues/110/comments"},"review_comments":{"href":"https://api.github.com/repos/board-games-calendar/board-games-calendar/pulls/110/comments"},"review_comment":{"href":"https://api.github.com/repos/board-games-calendar/board-games-calendar/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/board-games-calendar/board-games-calendar/pulls/110/commits"},"statuses":{"href":"https://api.github.com/repos/board-games-calendar/board-games-calendar/statuses/aa14256a2383f1d9cc3a131db1f180ba802d2f9e"}}}}