{"action":"created","comment":{"url":"https://api.github.com/repos/js-htmlacademy/87533-keksogram/pulls/comments/47449996","id":47449996,"diff_hunk":"@@ -0,0 +1,33 @@\n+'use strict';\n+\n+(function() {\n+  var divPictures = document.querySelector('.pictures');\n+  var templateNode = document.querySelector('#picture-template');\n+\n+  //Создание нового экземпляра по шаблону\n+  var newPictureTemplate = function(item) {\n+    var newTemplate = templateNode.content.children[0].cloneNode(true);","path":"js/pictures.js","position":9,"original_position":9,"commit_id":"ceab2f9ea44f3999fb925d8f799051534a133f38","original_commit_id":"ceab2f9ea44f3999fb925d8f799051534a133f38","user":{"login":"ekirill","id":1984189,"avatar_url":"https://avatars.githubusercontent.com/u/1984189?v=3","gravatar_id":"","url":"https://api.github.com/users/ekirill","html_url":"https://github.com/ekirill","followers_url":"https://api.github.com/users/ekirill/followers","following_url":"https://api.github.com/users/ekirill/following{/other_user}","gists_url":"https://api.github.com/users/ekirill/gists{/gist_id}","starred_url":"https://api.github.com/users/ekirill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ekirill/subscriptions","organizations_url":"https://api.github.com/users/ekirill/orgs","repos_url":"https://api.github.com/users/ekirill/repos","events_url":"https://api.github.com/users/ekirill/events{/privacy}","received_events_url":"https://api.github.com/users/ekirill/received_events","type":"User","site_admin":false},"body":"давай вынесем templateNode.content.children[0] в отдельную глобальную переменную, а внутри функции будем делать clone уже от этой переменной, иначе получается мы зазря на каждую картинку в цикле делаем поиск по DOM","created_at":"2015-12-13T20:52:50Z","updated_at":"2015-12-13T20:52:50Z","html_url":"https://github.com/js-htmlacademy/87533-keksogram/pull/6#discussion_r47449996","pull_request_url":"https://api.github.com/repos/js-htmlacademy/87533-keksogram/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/js-htmlacademy/87533-keksogram/pulls/comments/47449996"},"html":{"href":"https://github.com/js-htmlacademy/87533-keksogram/pull/6#discussion_r47449996"},"pull_request":{"href":"https://api.github.com/repos/js-htmlacademy/87533-keksogram/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/js-htmlacademy/87533-keksogram/pulls/6","id":53490243,"html_url":"https://github.com/js-htmlacademy/87533-keksogram/pull/6","diff_url":"https://github.com/js-htmlacademy/87533-keksogram/pull/6.diff","patch_url":"https://github.com/js-htmlacademy/87533-keksogram/pull/6.patch","issue_url":"https://api.github.com/repos/js-htmlacademy/87533-keksogram/issues/6","number":6,"state":"open","locked":false,"title":"Шаблонизируй это!","user":{"login":"ashkuc","id":12067195,"avatar_url":"https://avatars.githubusercontent.com/u/12067195?v=3","gravatar_id":"","url":"https://api.github.com/users/ashkuc","html_url":"https://github.com/ashkuc","followers_url":"https://api.github.com/users/ashkuc/followers","following_url":"https://api.github.com/users/ashkuc/following{/other_user}","gists_url":"https://api.github.com/users/ashkuc/gists{/gist_id}","starred_url":"https://api.github.com/users/ashkuc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashkuc/subscriptions","organizations_url":"https://api.github.com/users/ashkuc/orgs","repos_url":"https://api.github.com/users/ashkuc/repos","events_url":"https://api.github.com/users/ashkuc/events{/privacy}","received_events_url":"https://api.github.com/users/ashkuc/received_events","type":"User","site_admin":false},"body":"Задание выполнено, прошу принять в тестирование.\n\n--\n:boom: https://js-htmlacademy.github.io/87533-keksogram/6/","created_at":"2015-12-13T01:22:40Z","updated_at":"2015-12-13T20:52:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0d5eba3eccc3060ae320395d3d7ef4735cb9d234","assignee":{"login":"ekirill","id":1984189,"avatar_url":"https://avatars.githubusercontent.com/u/1984189?v=3","gravatar_id":"","url":"https://api.github.com/users/ekirill","html_url":"https://github.com/ekirill","followers_url":"https://api.github.com/users/ekirill/followers","following_url":"https://api.github.com/users/ekirill/following{/other_user}","gists_url":"https://api.github.com/users/ekirill/gists{/gist_id}","starred_url":"https://api.github.com/users/ekirill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ekirill/subscriptions","organizations_url":"https://api.github.com/users/ekirill/orgs","repos_url":"https://api.github.com/users/ekirill/repos","events_url":"https://api.github.com/users/ekirill/events{/privacy}","received_events_url":"https://api.github.com/users/ekirill/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/js-htmlacademy/87533-keksogram/pulls/6/commits","review_comments_url":"https://api.github.com/repos/js-htmlacademy/87533-keksogram/pulls/6/comments","review_comment_url":"https://api.github.com/repos/js-htmlacademy/87533-keksogram/pulls/comments{/number}","comments_url":"https://api.github.com/repos/js-htmlacademy/87533-keksogram/issues/6/comments","statuses_url":"https://api.github.com/repos/js-htmlacademy/87533-keksogram/statuses/ceab2f9ea44f3999fb925d8f799051534a133f38","head":{"label":"ashkuc:module4-task1","ref":"module4-task1","sha":"ceab2f9ea44f3999fb925d8f799051534a133f38","user":{"login":"ashkuc","id":12067195,"avatar_url":"https://avatars.githubusercontent.com/u/12067195?v=3","gravatar_id":"","url":"https://api.github.com/users/ashkuc","html_url":"https://github.com/ashkuc","followers_url":"https://api.github.com/users/ashkuc/followers","following_url":"https://api.github.com/users/ashkuc/following{/other_user}","gists_url":"https://api.github.com/users/ashkuc/gists{/gist_id}","starred_url":"https://api.github.com/users/ashkuc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashkuc/subscriptions","organizations_url":"https://api.github.com/users/ashkuc/orgs","repos_url":"https://api.github.com/users/ashkuc/repos","events_url":"https://api.github.com/users/ashkuc/events{/privacy}","received_events_url":"https://api.github.com/users/ashkuc/received_events","type":"User","site_admin":false},"repo":{"id":46079265,"name":"87533-keksogram","full_name":"ashkuc/87533-keksogram","owner":{"login":"ashkuc","id":12067195,"avatar_url":"https://avatars.githubusercontent.com/u/12067195?v=3","gravatar_id":"","url":"https://api.github.com/users/ashkuc","html_url":"https://github.com/ashkuc","followers_url":"https://api.github.com/users/ashkuc/followers","following_url":"https://api.github.com/users/ashkuc/following{/other_user}","gists_url":"https://api.github.com/users/ashkuc/gists{/gist_id}","starred_url":"https://api.github.com/users/ashkuc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashkuc/subscriptions","organizations_url":"https://api.github.com/users/ashkuc/orgs","repos_url":"https://api.github.com/users/ashkuc/repos","events_url":"https://api.github.com/users/ashkuc/events{/privacy}","received_events_url":"https://api.github.com/users/ashkuc/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ashkuc/87533-keksogram","description":"Арсений Медоев","fork":true,"url":"https://api.github.com/repos/ashkuc/87533-keksogram","forks_url":"https://api.github.com/repos/ashkuc/87533-keksogram/forks","keys_url":"https://api.github.com/repos/ashkuc/87533-keksogram/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ashkuc/87533-keksogram/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ashkuc/87533-keksogram/teams","hooks_url":"https://api.github.com/repos/ashkuc/87533-keksogram/hooks","issue_events_url":"https://api.github.com/repos/ashkuc/87533-keksogram/issues/events{/number}","events_url":"https://api.github.com/repos/ashkuc/87533-keksogram/events","assignees_url":"https://api.github.com/repos/ashkuc/87533-keksogram/assignees{/user}","branches_url":"https://api.github.com/repos/ashkuc/87533-keksogram/branches{/branch}","tags_url":"https://api.github.com/repos/ashkuc/87533-keksogram/tags","blobs_url":"https://api.github.com/repos/ashkuc/87533-keksogram/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ashkuc/87533-keksogram/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ashkuc/87533-keksogram/git/refs{/sha}","trees_url":"https://api.github.com/repos/ashkuc/87533-keksogram/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ashkuc/87533-keksogram/statuses/{sha}","languages_url":"https://api.github.com/repos/ashkuc/87533-keksogram/languages","stargazers_url":"https://api.github.com/repos/ashkuc/87533-keksogram/stargazers","contributors_url":"https://api.github.com/repos/ashkuc/87533-keksogram/contributors","subscribers_url":"https://api.github.com/repos/ashkuc/87533-keksogram/subscribers","subscription_url":"https://api.github.com/repos/ashkuc/87533-keksogram/subscription","commits_url":"https://api.github.com/repos/ashkuc/87533-keksogram/commits{/sha}","git_commits_url":"https://api.github.com/repos/ashkuc/87533-keksogram/git/commits{/sha}","comments_url":"https://api.github.com/repos/ashkuc/87533-keksogram/comments{/number}","issue_comment_url":"https://api.github.com/repos/ashkuc/87533-keksogram/issues/comments{/number}","contents_url":"https://api.github.com/repos/ashkuc/87533-keksogram/contents/{+path}","compare_url":"https://api.github.com/repos/ashkuc/87533-keksogram/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ashkuc/87533-keksogram/merges","archive_url":"https://api.github.com/repos/ashkuc/87533-keksogram/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ashkuc/87533-keksogram/downloads","issues_url":"https://api.github.com/repos/ashkuc/87533-keksogram/issues{/number}","pulls_url":"https://api.github.com/repos/ashkuc/87533-keksogram/pulls{/number}","milestones_url":"https://api.github.com/repos/ashkuc/87533-keksogram/milestones{/number}","notifications_url":"https://api.github.com/repos/ashkuc/87533-keksogram/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ashkuc/87533-keksogram/labels{/name}","releases_url":"https://api.github.com/repos/ashkuc/87533-keksogram/releases{/id}","created_at":"2015-11-12T20:35:22Z","updated_at":"2015-12-01T16:21:40Z","pushed_at":"2015-12-13T20:15:39Z","git_url":"git://github.com/ashkuc/87533-keksogram.git","ssh_url":"git@github.com:ashkuc/87533-keksogram.git","clone_url":"https://github.com/ashkuc/87533-keksogram.git","svn_url":"https://github.com/ashkuc/87533-keksogram","homepage":null,"size":3786,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":false,"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":1,"default_branch":"master"}},"base":{"label":"js-htmlacademy:master","ref":"master","sha":"7e3e992bdc3fba13cd2cc4dab9e5319d92d92994","user":{"login":"js-htmlacademy","id":14179712,"avatar_url":"https://avatars.githubusercontent.com/u/14179712?v=3","gravatar_id":"","url":"https://api.github.com/users/js-htmlacademy","html_url":"https://github.com/js-htmlacademy","followers_url":"https://api.github.com/users/js-htmlacademy/followers","following_url":"https://api.github.com/users/js-htmlacademy/following{/other_user}","gists_url":"https://api.github.com/users/js-htmlacademy/gists{/gist_id}","starred_url":"https://api.github.com/users/js-htmlacademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/js-htmlacademy/subscriptions","organizations_url":"https://api.github.com/users/js-htmlacademy/orgs","repos_url":"https://api.github.com/users/js-htmlacademy/repos","events_url":"https://api.github.com/users/js-htmlacademy/events{/privacy}","received_events_url":"https://api.github.com/users/js-htmlacademy/received_events","type":"Organization","site_admin":false},"repo":{"id":46079134,"name":"87533-keksogram","full_name":"js-htmlacademy/87533-keksogram","owner":{"login":"js-htmlacademy","id":14179712,"avatar_url":"https://avatars.githubusercontent.com/u/14179712?v=3","gravatar_id":"","url":"https://api.github.com/users/js-htmlacademy","html_url":"https://github.com/js-htmlacademy","followers_url":"https://api.github.com/users/js-htmlacademy/followers","following_url":"https://api.github.com/users/js-htmlacademy/following{/other_user}","gists_url":"https://api.github.com/users/js-htmlacademy/gists{/gist_id}","starred_url":"https://api.github.com/users/js-htmlacademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/js-htmlacademy/subscriptions","organizations_url":"https://api.github.com/users/js-htmlacademy/orgs","repos_url":"https://api.github.com/users/js-htmlacademy/repos","events_url":"https://api.github.com/users/js-htmlacademy/events{/privacy}","received_events_url":"https://api.github.com/users/js-htmlacademy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/js-htmlacademy/87533-keksogram","description":"Арсений Медоев","fork":false,"url":"https://api.github.com/repos/js-htmlacademy/87533-keksogram","forks_url":"https://api.github.com/repos/js-htmlacademy/87533-keksogram/forks","keys_url":"https://api.github.com/repos/js-htmlacademy/87533-keksogram/keys{/key_id}","collaborators_url":"https://api.github.com/repos/js-htmlacademy/87533-keksogram/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/js-htmlacademy/87533-keksogram/teams","hooks_url":"https://api.github.com/repos/js-htmlacademy/87533-keksogram/hooks","issue_events_url":"https://api.github.com/repos/js-htmlacademy/87533-keksogram/issues/events{/number}","events_url":"https://api.github.com/repos/js-htmlacademy/87533-keksogram/events","assignees_url":"https://api.github.com/repos/js-htmlacademy/87533-keksogram/assignees{/user}","branches_url":"https://api.github.com/repos/js-htmlacademy/87533-keksogram/branches{/branch}","tags_url":"https://api.github.com/repos/js-htmlacademy/87533-keksogram/tags","blobs_url":"https://api.github.com/repos/js-htmlacademy/87533-keksogram/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/js-htmlacademy/87533-keksogram/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/js-htmlacademy/87533-keksogram/git/refs{/sha}","trees_url":"https://api.github.com/repos/js-htmlacademy/87533-keksogram/git/trees{/sha}","statuses_url":"https://api.github.com/repos/js-htmlacademy/87533-keksogram/statuses/{sha}","languages_url":"https://api.github.com/repos/js-htmlacademy/87533-keksogram/languages","stargazers_url":"https://api.github.com/repos/js-htmlacademy/87533-keksogram/stargazers","contributors_url":"https://api.github.com/repos/js-htmlacademy/87533-keksogram/contributors","subscribers_url":"https://api.github.com/repos/js-htmlacademy/87533-keksogram/subscribers","subscription_url":"https://api.github.com/repos/js-htmlacademy/87533-keksogram/subscription","commits_url":"https://api.github.com/repos/js-htmlacademy/87533-keksogram/commits{/sha}","git_commits_url":"https://api.github.com/repos/js-htmlacademy/87533-keksogram/git/commits{/sha}","comments_url":"https://api.github.com/repos/js-htmlacademy/87533-keksogram/comments{/number}","issue_comment_url":"https://api.github.com/repos/js-htmlacademy/87533-keksogram/issues/comments{/number}","contents_url":"https://api.github.com/repos/js-htmlacademy/87533-keksogram/contents/{+path}","compare_url":"https://api.github.com/repos/js-htmlacademy/87533-keksogram/compare/{base}...{head}","merges_url":"https://api.github.com/repos/js-htmlacademy/87533-keksogram/merges","archive_url":"https://api.github.com/repos/js-htmlacademy/87533-keksogram/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/js-htmlacademy/87533-keksogram/downloads","issues_url":"https://api.github.com/repos/js-htmlacademy/87533-keksogram/issues{/number}","pulls_url":"https://api.github.com/repos/js-htmlacademy/87533-keksogram/pulls{/number}","milestones_url":"https://api.github.com/repos/js-htmlacademy/87533-keksogram/milestones{/number}","notifications_url":"https://api.github.com/repos/js-htmlacademy/87533-keksogram/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/js-htmlacademy/87533-keksogram/labels{/name}","releases_url":"https://api.github.com/repos/js-htmlacademy/87533-keksogram/releases{/id}","created_at":"2015-11-12T20:32:40Z","updated_at":"2015-11-14T20:51:47Z","pushed_at":"2015-12-13T20:15:39Z","git_url":"git://github.com/js-htmlacademy/87533-keksogram.git","ssh_url":"git@github.com:js-htmlacademy/87533-keksogram.git","clone_url":"https://github.com/js-htmlacademy/87533-keksogram.git","svn_url":"https://github.com/js-htmlacademy/87533-keksogram","homepage":"https://github.com/ashkuc/87533-keksogram","size":3783,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":true,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/js-htmlacademy/87533-keksogram/pulls/6"},"html":{"href":"https://github.com/js-htmlacademy/87533-keksogram/pull/6"},"issue":{"href":"https://api.github.com/repos/js-htmlacademy/87533-keksogram/issues/6"},"comments":{"href":"https://api.github.com/repos/js-htmlacademy/87533-keksogram/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/js-htmlacademy/87533-keksogram/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/js-htmlacademy/87533-keksogram/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/js-htmlacademy/87533-keksogram/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/js-htmlacademy/87533-keksogram/statuses/ceab2f9ea44f3999fb925d8f799051534a133f38"}}}}