{"action":"created","comment":{"url":"https://api.github.com/repos/htmlacademy-javascript/129900-keksobooking/pulls/comments/113056770","pull_request_review_id":34417429,"id":113056770,"diff_hunk":"@@ -0,0 +1,58 @@\n+'use strict';\n+\n+window.dragMainPin = (function () {","path":"js/dragMainPin.js","position":3,"original_position":3,"commit_id":"41bd5392211192fb8e1c9cda1769da8d5156b2e1","original_commit_id":"41bd5392211192fb8e1c9cda1769da8d5156b2e1","user":{"login":"o0","id":696826,"avatar_url":"https://avatars3.githubusercontent.com/u/696826?v=3","gravatar_id":"","url":"https://api.github.com/users/o0","html_url":"https://github.com/o0","followers_url":"https://api.github.com/users/o0/followers","following_url":"https://api.github.com/users/o0/following{/other_user}","gists_url":"https://api.github.com/users/o0/gists{/gist_id}","starred_url":"https://api.github.com/users/o0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/o0/subscriptions","organizations_url":"https://api.github.com/users/o0/orgs","repos_url":"https://api.github.com/users/o0/repos","events_url":"https://api.github.com/users/o0/events{/privacy}","received_events_url":"https://api.github.com/users/o0/received_events","type":"User","site_admin":false},"body":"У тебя в этом модуле относящегося к главному пину только одна переменная — `pinHandle`. От адреса ты можешь избавиться коллбэком. Я бы просто сделал `setDraggable`, перетаскиваемый элемент сделал бы параметром, вторым параметром сделал бы коллбэк, вызывал бы этот метод в `form.js` и коллбэком назначил бы установку адреса.","created_at":"2017-04-24T21:08:24Z","updated_at":"2017-04-24T21:11:56Z","html_url":"https://github.com/htmlacademy-javascript/129900-keksobooking/pull/7#discussion_r113056770","pull_request_url":"https://api.github.com/repos/htmlacademy-javascript/129900-keksobooking/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-javascript/129900-keksobooking/pulls/comments/113056770"},"html":{"href":"https://github.com/htmlacademy-javascript/129900-keksobooking/pull/7#discussion_r113056770"},"pull_request":{"href":"https://api.github.com/repos/htmlacademy-javascript/129900-keksobooking/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/htmlacademy-javascript/129900-keksobooking/pulls/7","id":117008307,"html_url":"https://github.com/htmlacademy-javascript/129900-keksobooking/pull/7","diff_url":"https://github.com/htmlacademy-javascript/129900-keksobooking/pull/7.diff","patch_url":"https://github.com/htmlacademy-javascript/129900-keksobooking/pull/7.patch","issue_url":"https://api.github.com/repos/htmlacademy-javascript/129900-keksobooking/issues/7","number":7,"state":"open","locked":false,"title":"Личный проект: уникальный код","user":{"login":"Starushchenko","id":18396909,"avatar_url":"https://avatars0.githubusercontent.com/u/18396909?v=3","gravatar_id":"","url":"https://api.github.com/users/Starushchenko","html_url":"https://github.com/Starushchenko","followers_url":"https://api.github.com/users/Starushchenko/followers","following_url":"https://api.github.com/users/Starushchenko/following{/other_user}","gists_url":"https://api.github.com/users/Starushchenko/gists{/gist_id}","starred_url":"https://api.github.com/users/Starushchenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Starushchenko/subscriptions","organizations_url":"https://api.github.com/users/Starushchenko/orgs","repos_url":"https://api.github.com/users/Starushchenko/repos","events_url":"https://api.github.com/users/Starushchenko/events{/privacy}","received_events_url":"https://api.github.com/users/Starushchenko/received_events","type":"User","site_admin":false},"body":"\n\n---\n:mortar_board: [Личный проект: уникальный код](https://up.htmlacademy.ru/javascript/9/user/129900/tasks/18)\n\n:boom: https://htmlacademy-javascript.github.io/129900-keksobooking/7/","created_at":"2017-04-21T15:18:35Z","updated_at":"2017-04-24T21:11:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"97e005ff099063159d938b7dac65ad88d0d08915","assignee":{"login":"o0","id":696826,"avatar_url":"https://avatars3.githubusercontent.com/u/696826?v=3","gravatar_id":"","url":"https://api.github.com/users/o0","html_url":"https://github.com/o0","followers_url":"https://api.github.com/users/o0/followers","following_url":"https://api.github.com/users/o0/following{/other_user}","gists_url":"https://api.github.com/users/o0/gists{/gist_id}","starred_url":"https://api.github.com/users/o0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/o0/subscriptions","organizations_url":"https://api.github.com/users/o0/orgs","repos_url":"https://api.github.com/users/o0/repos","events_url":"https://api.github.com/users/o0/events{/privacy}","received_events_url":"https://api.github.com/users/o0/received_events","type":"User","site_admin":false},"assignees":[{"login":"o0","id":696826,"avatar_url":"https://avatars3.githubusercontent.com/u/696826?v=3","gravatar_id":"","url":"https://api.github.com/users/o0","html_url":"https://github.com/o0","followers_url":"https://api.github.com/users/o0/followers","following_url":"https://api.github.com/users/o0/following{/other_user}","gists_url":"https://api.github.com/users/o0/gists{/gist_id}","starred_url":"https://api.github.com/users/o0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/o0/subscriptions","organizations_url":"https://api.github.com/users/o0/orgs","repos_url":"https://api.github.com/users/o0/repos","events_url":"https://api.github.com/users/o0/events{/privacy}","received_events_url":"https://api.github.com/users/o0/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/htmlacademy-javascript/129900-keksobooking/pulls/7/commits","review_comments_url":"https://api.github.com/repos/htmlacademy-javascript/129900-keksobooking/pulls/7/comments","review_comment_url":"https://api.github.com/repos/htmlacademy-javascript/129900-keksobooking/pulls/comments{/number}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/129900-keksobooking/issues/7/comments","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/129900-keksobooking/statuses/41bd5392211192fb8e1c9cda1769da8d5156b2e1","head":{"label":"Starushchenko:module5-task3","ref":"module5-task3","sha":"41bd5392211192fb8e1c9cda1769da8d5156b2e1","user":{"login":"Starushchenko","id":18396909,"avatar_url":"https://avatars0.githubusercontent.com/u/18396909?v=3","gravatar_id":"","url":"https://api.github.com/users/Starushchenko","html_url":"https://github.com/Starushchenko","followers_url":"https://api.github.com/users/Starushchenko/followers","following_url":"https://api.github.com/users/Starushchenko/following{/other_user}","gists_url":"https://api.github.com/users/Starushchenko/gists{/gist_id}","starred_url":"https://api.github.com/users/Starushchenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Starushchenko/subscriptions","organizations_url":"https://api.github.com/users/Starushchenko/orgs","repos_url":"https://api.github.com/users/Starushchenko/repos","events_url":"https://api.github.com/users/Starushchenko/events{/privacy}","received_events_url":"https://api.github.com/users/Starushchenko/received_events","type":"User","site_admin":false},"repo":{"id":85744142,"name":"129900-keksobooking","full_name":"Starushchenko/129900-keksobooking","owner":{"login":"Starushchenko","id":18396909,"avatar_url":"https://avatars0.githubusercontent.com/u/18396909?v=3","gravatar_id":"","url":"https://api.github.com/users/Starushchenko","html_url":"https://github.com/Starushchenko","followers_url":"https://api.github.com/users/Starushchenko/followers","following_url":"https://api.github.com/users/Starushchenko/following{/other_user}","gists_url":"https://api.github.com/users/Starushchenko/gists{/gist_id}","starred_url":"https://api.github.com/users/Starushchenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Starushchenko/subscriptions","organizations_url":"https://api.github.com/users/Starushchenko/orgs","repos_url":"https://api.github.com/users/Starushchenko/repos","events_url":"https://api.github.com/users/Starushchenko/events{/privacy}","received_events_url":"https://api.github.com/users/Starushchenko/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Starushchenko/129900-keksobooking","description":"Ярослав Старущенко","fork":true,"url":"https://api.github.com/repos/Starushchenko/129900-keksobooking","forks_url":"https://api.github.com/repos/Starushchenko/129900-keksobooking/forks","keys_url":"https://api.github.com/repos/Starushchenko/129900-keksobooking/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Starushchenko/129900-keksobooking/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Starushchenko/129900-keksobooking/teams","hooks_url":"https://api.github.com/repos/Starushchenko/129900-keksobooking/hooks","issue_events_url":"https://api.github.com/repos/Starushchenko/129900-keksobooking/issues/events{/number}","events_url":"https://api.github.com/repos/Starushchenko/129900-keksobooking/events","assignees_url":"https://api.github.com/repos/Starushchenko/129900-keksobooking/assignees{/user}","branches_url":"https://api.github.com/repos/Starushchenko/129900-keksobooking/branches{/branch}","tags_url":"https://api.github.com/repos/Starushchenko/129900-keksobooking/tags","blobs_url":"https://api.github.com/repos/Starushchenko/129900-keksobooking/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Starushchenko/129900-keksobooking/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Starushchenko/129900-keksobooking/git/refs{/sha}","trees_url":"https://api.github.com/repos/Starushchenko/129900-keksobooking/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Starushchenko/129900-keksobooking/statuses/{sha}","languages_url":"https://api.github.com/repos/Starushchenko/129900-keksobooking/languages","stargazers_url":"https://api.github.com/repos/Starushchenko/129900-keksobooking/stargazers","contributors_url":"https://api.github.com/repos/Starushchenko/129900-keksobooking/contributors","subscribers_url":"https://api.github.com/repos/Starushchenko/129900-keksobooking/subscribers","subscription_url":"https://api.github.com/repos/Starushchenko/129900-keksobooking/subscription","commits_url":"https://api.github.com/repos/Starushchenko/129900-keksobooking/commits{/sha}","git_commits_url":"https://api.github.com/repos/Starushchenko/129900-keksobooking/git/commits{/sha}","comments_url":"https://api.github.com/repos/Starushchenko/129900-keksobooking/comments{/number}","issue_comment_url":"https://api.github.com/repos/Starushchenko/129900-keksobooking/issues/comments{/number}","contents_url":"https://api.github.com/repos/Starushchenko/129900-keksobooking/contents/{+path}","compare_url":"https://api.github.com/repos/Starushchenko/129900-keksobooking/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Starushchenko/129900-keksobooking/merges","archive_url":"https://api.github.com/repos/Starushchenko/129900-keksobooking/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Starushchenko/129900-keksobooking/downloads","issues_url":"https://api.github.com/repos/Starushchenko/129900-keksobooking/issues{/number}","pulls_url":"https://api.github.com/repos/Starushchenko/129900-keksobooking/pulls{/number}","milestones_url":"https://api.github.com/repos/Starushchenko/129900-keksobooking/milestones{/number}","notifications_url":"https://api.github.com/repos/Starushchenko/129900-keksobooking/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Starushchenko/129900-keksobooking/labels{/name}","releases_url":"https://api.github.com/repos/Starushchenko/129900-keksobooking/releases{/id}","deployments_url":"https://api.github.com/repos/Starushchenko/129900-keksobooking/deployments","created_at":"2017-03-21T19:24:23Z","updated_at":"2017-03-21T19:24:25Z","pushed_at":"2017-04-24T17:45:50Z","git_url":"git://github.com/Starushchenko/129900-keksobooking.git","ssh_url":"git@github.com:Starushchenko/129900-keksobooking.git","clone_url":"https://github.com/Starushchenko/129900-keksobooking.git","svn_url":"https://github.com/Starushchenko/129900-keksobooking","homepage":null,"size":2047,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_projects":true,"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":"htmlacademy-javascript:master","ref":"master","sha":"4efe55753d9c5823a8f00653486f96c4c7b740c4","user":{"login":"htmlacademy-javascript","id":14179712,"avatar_url":"https://avatars1.githubusercontent.com/u/14179712?v=3","gravatar_id":"","url":"https://api.github.com/users/htmlacademy-javascript","html_url":"https://github.com/htmlacademy-javascript","followers_url":"https://api.github.com/users/htmlacademy-javascript/followers","following_url":"https://api.github.com/users/htmlacademy-javascript/following{/other_user}","gists_url":"https://api.github.com/users/htmlacademy-javascript/gists{/gist_id}","starred_url":"https://api.github.com/users/htmlacademy-javascript/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/htmlacademy-javascript/subscriptions","organizations_url":"https://api.github.com/users/htmlacademy-javascript/orgs","repos_url":"https://api.github.com/users/htmlacademy-javascript/repos","events_url":"https://api.github.com/users/htmlacademy-javascript/events{/privacy}","received_events_url":"https://api.github.com/users/htmlacademy-javascript/received_events","type":"Organization","site_admin":false},"repo":{"id":85741396,"name":"129900-keksobooking","full_name":"htmlacademy-javascript/129900-keksobooking","owner":{"login":"htmlacademy-javascript","id":14179712,"avatar_url":"https://avatars1.githubusercontent.com/u/14179712?v=3","gravatar_id":"","url":"https://api.github.com/users/htmlacademy-javascript","html_url":"https://github.com/htmlacademy-javascript","followers_url":"https://api.github.com/users/htmlacademy-javascript/followers","following_url":"https://api.github.com/users/htmlacademy-javascript/following{/other_user}","gists_url":"https://api.github.com/users/htmlacademy-javascript/gists{/gist_id}","starred_url":"https://api.github.com/users/htmlacademy-javascript/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/htmlacademy-javascript/subscriptions","organizations_url":"https://api.github.com/users/htmlacademy-javascript/orgs","repos_url":"https://api.github.com/users/htmlacademy-javascript/repos","events_url":"https://api.github.com/users/htmlacademy-javascript/events{/privacy}","received_events_url":"https://api.github.com/users/htmlacademy-javascript/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/htmlacademy-javascript/129900-keksobooking","description":"Ярослав Старущенко","fork":false,"url":"https://api.github.com/repos/htmlacademy-javascript/129900-keksobooking","forks_url":"https://api.github.com/repos/htmlacademy-javascript/129900-keksobooking/forks","keys_url":"https://api.github.com/repos/htmlacademy-javascript/129900-keksobooking/keys{/key_id}","collaborators_url":"https://api.github.com/repos/htmlacademy-javascript/129900-keksobooking/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/htmlacademy-javascript/129900-keksobooking/teams","hooks_url":"https://api.github.com/repos/htmlacademy-javascript/129900-keksobooking/hooks","issue_events_url":"https://api.github.com/repos/htmlacademy-javascript/129900-keksobooking/issues/events{/number}","events_url":"https://api.github.com/repos/htmlacademy-javascript/129900-keksobooking/events","assignees_url":"https://api.github.com/repos/htmlacademy-javascript/129900-keksobooking/assignees{/user}","branches_url":"https://api.github.com/repos/htmlacademy-javascript/129900-keksobooking/branches{/branch}","tags_url":"https://api.github.com/repos/htmlacademy-javascript/129900-keksobooking/tags","blobs_url":"https://api.github.com/repos/htmlacademy-javascript/129900-keksobooking/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/htmlacademy-javascript/129900-keksobooking/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/htmlacademy-javascript/129900-keksobooking/git/refs{/sha}","trees_url":"https://api.github.com/repos/htmlacademy-javascript/129900-keksobooking/git/trees{/sha}","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/129900-keksobooking/statuses/{sha}","languages_url":"https://api.github.com/repos/htmlacademy-javascript/129900-keksobooking/languages","stargazers_url":"https://api.github.com/repos/htmlacademy-javascript/129900-keksobooking/stargazers","contributors_url":"https://api.github.com/repos/htmlacademy-javascript/129900-keksobooking/contributors","subscribers_url":"https://api.github.com/repos/htmlacademy-javascript/129900-keksobooking/subscribers","subscription_url":"https://api.github.com/repos/htmlacademy-javascript/129900-keksobooking/subscription","commits_url":"https://api.github.com/repos/htmlacademy-javascript/129900-keksobooking/commits{/sha}","git_commits_url":"https://api.github.com/repos/htmlacademy-javascript/129900-keksobooking/git/commits{/sha}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/129900-keksobooking/comments{/number}","issue_comment_url":"https://api.github.com/repos/htmlacademy-javascript/129900-keksobooking/issues/comments{/number}","contents_url":"https://api.github.com/repos/htmlacademy-javascript/129900-keksobooking/contents/{+path}","compare_url":"https://api.github.com/repos/htmlacademy-javascript/129900-keksobooking/compare/{base}...{head}","merges_url":"https://api.github.com/repos/htmlacademy-javascript/129900-keksobooking/merges","archive_url":"https://api.github.com/repos/htmlacademy-javascript/129900-keksobooking/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/htmlacademy-javascript/129900-keksobooking/downloads","issues_url":"https://api.github.com/repos/htmlacademy-javascript/129900-keksobooking/issues{/number}","pulls_url":"https://api.github.com/repos/htmlacademy-javascript/129900-keksobooking/pulls{/number}","milestones_url":"https://api.github.com/repos/htmlacademy-javascript/129900-keksobooking/milestones{/number}","notifications_url":"https://api.github.com/repos/htmlacademy-javascript/129900-keksobooking/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/htmlacademy-javascript/129900-keksobooking/labels{/name}","releases_url":"https://api.github.com/repos/htmlacademy-javascript/129900-keksobooking/releases{/id}","deployments_url":"https://api.github.com/repos/htmlacademy-javascript/129900-keksobooking/deployments","created_at":"2017-03-21T18:54:28Z","updated_at":"2017-03-21T19:40:05Z","pushed_at":"2017-04-24T17:45:51Z","git_url":"git://github.com/htmlacademy-javascript/129900-keksobooking.git","ssh_url":"git@github.com:htmlacademy-javascript/129900-keksobooking.git","clone_url":"https://github.com/htmlacademy-javascript/129900-keksobooking.git","svn_url":"https://github.com/htmlacademy-javascript/129900-keksobooking","homepage":"https://github.com/Starushchenko/129900-keksobooking","size":2052,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":true,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-javascript/129900-keksobooking/pulls/7"},"html":{"href":"https://github.com/htmlacademy-javascript/129900-keksobooking/pull/7"},"issue":{"href":"https://api.github.com/repos/htmlacademy-javascript/129900-keksobooking/issues/7"},"comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/129900-keksobooking/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/129900-keksobooking/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/htmlacademy-javascript/129900-keksobooking/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/htmlacademy-javascript/129900-keksobooking/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/htmlacademy-javascript/129900-keksobooking/statuses/41bd5392211192fb8e1c9cda1769da8d5156b2e1"}}}}
{"actor":{"display_login":"o0"}}