{"action":"created","issue":{"url":"https://api.github.com/repos/htmlacademy-javascript/305185-keksobooking/issues/2","repository_url":"https://api.github.com/repos/htmlacademy-javascript/305185-keksobooking","labels_url":"https://api.github.com/repos/htmlacademy-javascript/305185-keksobooking/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/305185-keksobooking/issues/2/comments","events_url":"https://api.github.com/repos/htmlacademy-javascript/305185-keksobooking/issues/2/events","html_url":"https://github.com/htmlacademy-javascript/305185-keksobooking/pull/2","id":294089172,"number":2,"title":"Личный проект: милый DOM","user":{"login":"Shumnial","id":23168913,"avatar_url":"https://avatars1.githubusercontent.com/u/23168913?v=4","gravatar_id":"","url":"https://api.github.com/users/Shumnial","html_url":"https://github.com/Shumnial","followers_url":"https://api.github.com/users/Shumnial/followers","following_url":"https://api.github.com/users/Shumnial/following{/other_user}","gists_url":"https://api.github.com/users/Shumnial/gists{/gist_id}","starred_url":"https://api.github.com/users/Shumnial/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shumnial/subscriptions","organizations_url":"https://api.github.com/users/Shumnial/orgs","repos_url":"https://api.github.com/users/Shumnial/repos","events_url":"https://api.github.com/users/Shumnial/events{/privacy}","received_events_url":"https://api.github.com/users/Shumnial/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"bolshovalexandr","id":19558362,"avatar_url":"https://avatars0.githubusercontent.com/u/19558362?v=4","gravatar_id":"","url":"https://api.github.com/users/bolshovalexandr","html_url":"https://github.com/bolshovalexandr","followers_url":"https://api.github.com/users/bolshovalexandr/followers","following_url":"https://api.github.com/users/bolshovalexandr/following{/other_user}","gists_url":"https://api.github.com/users/bolshovalexandr/gists{/gist_id}","starred_url":"https://api.github.com/users/bolshovalexandr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bolshovalexandr/subscriptions","organizations_url":"https://api.github.com/users/bolshovalexandr/orgs","repos_url":"https://api.github.com/users/bolshovalexandr/repos","events_url":"https://api.github.com/users/bolshovalexandr/events{/privacy}","received_events_url":"https://api.github.com/users/bolshovalexandr/received_events","type":"User","site_admin":false},"assignees":[{"login":"bolshovalexandr","id":19558362,"avatar_url":"https://avatars0.githubusercontent.com/u/19558362?v=4","gravatar_id":"","url":"https://api.github.com/users/bolshovalexandr","html_url":"https://github.com/bolshovalexandr","followers_url":"https://api.github.com/users/bolshovalexandr/followers","following_url":"https://api.github.com/users/bolshovalexandr/following{/other_user}","gists_url":"https://api.github.com/users/bolshovalexandr/gists{/gist_id}","starred_url":"https://api.github.com/users/bolshovalexandr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bolshovalexandr/subscriptions","organizations_url":"https://api.github.com/users/bolshovalexandr/orgs","repos_url":"https://api.github.com/users/bolshovalexandr/repos","events_url":"https://api.github.com/users/bolshovalexandr/events{/privacy}","received_events_url":"https://api.github.com/users/bolshovalexandr/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2018-02-03T06:36:00Z","updated_at":"2018-02-09T09:37:38Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/htmlacademy-javascript/305185-keksobooking/pulls/2","html_url":"https://github.com/htmlacademy-javascript/305185-keksobooking/pull/2","diff_url":"https://github.com/htmlacademy-javascript/305185-keksobooking/pull/2.diff","patch_url":"https://github.com/htmlacademy-javascript/305185-keksobooking/pull/2.patch"},"body":"\n\n---\n:mortar_board: [Личный проект: милый DOM](https://up.htmlacademy.ru/javascript/12/user/305185/tasks/10)\n\n:boom: https://htmlacademy-javascript.github.io/305185-keksobooking/2/"},"comment":{"url":"https://api.github.com/repos/htmlacademy-javascript/305185-keksobooking/issues/comments/364383545","html_url":"https://github.com/htmlacademy-javascript/305185-keksobooking/pull/2#issuecomment-364383545","issue_url":"https://api.github.com/repos/htmlacademy-javascript/305185-keksobooking/issues/2","id":364383545,"user":{"login":"bolshovalexandr","id":19558362,"avatar_url":"https://avatars0.githubusercontent.com/u/19558362?v=4","gravatar_id":"","url":"https://api.github.com/users/bolshovalexandr","html_url":"https://github.com/bolshovalexandr","followers_url":"https://api.github.com/users/bolshovalexandr/followers","following_url":"https://api.github.com/users/bolshovalexandr/following{/other_user}","gists_url":"https://api.github.com/users/bolshovalexandr/gists{/gist_id}","starred_url":"https://api.github.com/users/bolshovalexandr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bolshovalexandr/subscriptions","organizations_url":"https://api.github.com/users/bolshovalexandr/orgs","repos_url":"https://api.github.com/users/bolshovalexandr/repos","events_url":"https://api.github.com/users/bolshovalexandr/events{/privacy}","received_events_url":"https://api.github.com/users/bolshovalexandr/received_events","type":"User","site_admin":false},"created_at":"2018-02-09T09:37:38Z","updated_at":"2018-02-09T09:37:38Z","author_association":"COLLABORATOR","body":"1. Координаты\r\n![image](https://user-images.githubusercontent.com/19558362/36020665-7f7afd5e-0d94-11e8-89fa-b2cbb354c469.png)\r\n2. Фото перемешиваются некорректно, пара постоянно дублируется\r\n3. Объект с сопоставлением типов жилья может выглядеть так\r\n```\r\nvar accomodationType = {\r\n  'flat': 'Квартира',\r\n  'house': 'Дом',\r\n  'bungalo': 'Бунгало'\r\n};\r\n```\r\nА обращение к нему так: `accomodationType[offer.type];`\r\nПрофит в том, что если типов жилья штук 20, то лестница из if...else... будет совершенно нечитаемой, а switch...case... громоздким\r\n4. Что-то я никак не уловлю, а зачем мы в трех функциях обращаемся к шаблону, что-то там меняем, а потом уже его клонируем. Можно про это подробнее?"}}
{"actor":{"display_login":"bolshovalexandr"}}