{"action":"created","comment":{"url":"https://api.github.com/repos/htmlacademy-javascript/31893-code-and-magick/pulls/comments/69559909","id":69559909,"diff_hunk":"@@ -11,6 +11,12 @@ define(['./variables'], function(variables) {\n \n   return {\n \n+    inherit: function(ChildComponent, BaseComponent) {\n+      function EmptyConstructor() {}\n+      EmptyConstructor.prototype = BaseComponent.prototype;\n+      ChildComponent.prototype = new EmptyConstructor();","path":"src/utils.js","position":7,"original_position":7,"commit_id":"93ad7832872265e02e17c730e35bbbc3d3c9509d","original_commit_id":"93ad7832872265e02e17c730e35bbbc3d3c9509d","user":{"login":"healqq","id":4745481,"avatar_url":"https://avatars.githubusercontent.com/u/4745481?v=3","gravatar_id":"","url":"https://api.github.com/users/healqq","html_url":"https://github.com/healqq","followers_url":"https://api.github.com/users/healqq/followers","following_url":"https://api.github.com/users/healqq/following{/other_user}","gists_url":"https://api.github.com/users/healqq/gists{/gist_id}","starred_url":"https://api.github.com/users/healqq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/healqq/subscriptions","organizations_url":"https://api.github.com/users/healqq/orgs","repos_url":"https://api.github.com/users/healqq/repos","events_url":"https://api.github.com/users/healqq/events{/privacy}","received_events_url":"https://api.github.com/users/healqq/received_events","type":"User","site_admin":false},"body":"Если ты посмотришь в консоли свойство **Review.prototype.constructor** (поставь точку останова в модуле Review на строчке return Review) то обнаружишь там функцию, которая является конструктором BaseComponent.\r\nВообще это не очень страшно, т.к. это свойство нужно только чтобы можно было как-то добраться до конструктора изнутри класса. Но хорошо бы чтобы там было нужное нам значение. Нужно в этой функции руками присвоить этому свойству ссылку на переданный нам дочерний компонент.","created_at":"2016-07-05T13:13:59Z","updated_at":"2016-07-05T13:13:59Z","html_url":"https://github.com/htmlacademy-javascript/31893-code-and-magick/pull/18#discussion_r69559909","pull_request_url":"https://api.github.com/repos/htmlacademy-javascript/31893-code-and-magick/pulls/18","_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-javascript/31893-code-and-magick/pulls/comments/69559909"},"html":{"href":"https://github.com/htmlacademy-javascript/31893-code-and-magick/pull/18#discussion_r69559909"},"pull_request":{"href":"https://api.github.com/repos/htmlacademy-javascript/31893-code-and-magick/pulls/18"}}},"pull_request":{"url":"https://api.github.com/repos/htmlacademy-javascript/31893-code-and-magick/pulls/18","id":76163742,"html_url":"https://github.com/htmlacademy-javascript/31893-code-and-magick/pull/18","diff_url":"https://github.com/htmlacademy-javascript/31893-code-and-magick/pull/18.diff","patch_url":"https://github.com/htmlacademy-javascript/31893-code-and-magick/pull/18.patch","issue_url":"https://api.github.com/repos/htmlacademy-javascript/31893-code-and-magick/issues/18","number":18,"state":"open","locked":false,"title":"Контексты и прототипы","user":{"login":"Napalm005","id":15836537,"avatar_url":"https://avatars.githubusercontent.com/u/15836537?v=3","gravatar_id":"","url":"https://api.github.com/users/Napalm005","html_url":"https://github.com/Napalm005","followers_url":"https://api.github.com/users/Napalm005/followers","following_url":"https://api.github.com/users/Napalm005/following{/other_user}","gists_url":"https://api.github.com/users/Napalm005/gists{/gist_id}","starred_url":"https://api.github.com/users/Napalm005/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Napalm005/subscriptions","organizations_url":"https://api.github.com/users/Napalm005/orgs","repos_url":"https://api.github.com/users/Napalm005/repos","events_url":"https://api.github.com/users/Napalm005/events{/privacy}","received_events_url":"https://api.github.com/users/Napalm005/received_events","type":"User","site_admin":false},"body":null,"created_at":"2016-07-04T13:28:07Z","updated_at":"2016-07-05T13:13:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9c93bc11b9deb55f7aef4ed59a72cadabaf4b2c8","assignee":{"login":"healqq","id":4745481,"avatar_url":"https://avatars.githubusercontent.com/u/4745481?v=3","gravatar_id":"","url":"https://api.github.com/users/healqq","html_url":"https://github.com/healqq","followers_url":"https://api.github.com/users/healqq/followers","following_url":"https://api.github.com/users/healqq/following{/other_user}","gists_url":"https://api.github.com/users/healqq/gists{/gist_id}","starred_url":"https://api.github.com/users/healqq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/healqq/subscriptions","organizations_url":"https://api.github.com/users/healqq/orgs","repos_url":"https://api.github.com/users/healqq/repos","events_url":"https://api.github.com/users/healqq/events{/privacy}","received_events_url":"https://api.github.com/users/healqq/received_events","type":"User","site_admin":false},"assignees":[{"login":"healqq","id":4745481,"avatar_url":"https://avatars.githubusercontent.com/u/4745481?v=3","gravatar_id":"","url":"https://api.github.com/users/healqq","html_url":"https://github.com/healqq","followers_url":"https://api.github.com/users/healqq/followers","following_url":"https://api.github.com/users/healqq/following{/other_user}","gists_url":"https://api.github.com/users/healqq/gists{/gist_id}","starred_url":"https://api.github.com/users/healqq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/healqq/subscriptions","organizations_url":"https://api.github.com/users/healqq/orgs","repos_url":"https://api.github.com/users/healqq/repos","events_url":"https://api.github.com/users/healqq/events{/privacy}","received_events_url":"https://api.github.com/users/healqq/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/htmlacademy-javascript/31893-code-and-magick/pulls/18/commits","review_comments_url":"https://api.github.com/repos/htmlacademy-javascript/31893-code-and-magick/pulls/18/comments","review_comment_url":"https://api.github.com/repos/htmlacademy-javascript/31893-code-and-magick/pulls/comments{/number}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/31893-code-and-magick/issues/18/comments","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/31893-code-and-magick/statuses/93ad7832872265e02e17c730e35bbbc3d3c9509d","head":{"label":"Napalm005:module9-task3","ref":"module9-task3","sha":"93ad7832872265e02e17c730e35bbbc3d3c9509d","user":{"login":"Napalm005","id":15836537,"avatar_url":"https://avatars.githubusercontent.com/u/15836537?v=3","gravatar_id":"","url":"https://api.github.com/users/Napalm005","html_url":"https://github.com/Napalm005","followers_url":"https://api.github.com/users/Napalm005/followers","following_url":"https://api.github.com/users/Napalm005/following{/other_user}","gists_url":"https://api.github.com/users/Napalm005/gists{/gist_id}","starred_url":"https://api.github.com/users/Napalm005/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Napalm005/subscriptions","organizations_url":"https://api.github.com/users/Napalm005/orgs","repos_url":"https://api.github.com/users/Napalm005/repos","events_url":"https://api.github.com/users/Napalm005/events{/privacy}","received_events_url":"https://api.github.com/users/Napalm005/received_events","type":"User","site_admin":false},"repo":{"id":59744498,"name":"31893-code-and-magick","full_name":"Napalm005/31893-code-and-magick","owner":{"login":"Napalm005","id":15836537,"avatar_url":"https://avatars.githubusercontent.com/u/15836537?v=3","gravatar_id":"","url":"https://api.github.com/users/Napalm005","html_url":"https://github.com/Napalm005","followers_url":"https://api.github.com/users/Napalm005/followers","following_url":"https://api.github.com/users/Napalm005/following{/other_user}","gists_url":"https://api.github.com/users/Napalm005/gists{/gist_id}","starred_url":"https://api.github.com/users/Napalm005/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Napalm005/subscriptions","organizations_url":"https://api.github.com/users/Napalm005/orgs","repos_url":"https://api.github.com/users/Napalm005/repos","events_url":"https://api.github.com/users/Napalm005/events{/privacy}","received_events_url":"https://api.github.com/users/Napalm005/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Napalm005/31893-code-and-magick","description":"Александр Фролов","fork":true,"url":"https://api.github.com/repos/Napalm005/31893-code-and-magick","forks_url":"https://api.github.com/repos/Napalm005/31893-code-and-magick/forks","keys_url":"https://api.github.com/repos/Napalm005/31893-code-and-magick/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Napalm005/31893-code-and-magick/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Napalm005/31893-code-and-magick/teams","hooks_url":"https://api.github.com/repos/Napalm005/31893-code-and-magick/hooks","issue_events_url":"https://api.github.com/repos/Napalm005/31893-code-and-magick/issues/events{/number}","events_url":"https://api.github.com/repos/Napalm005/31893-code-and-magick/events","assignees_url":"https://api.github.com/repos/Napalm005/31893-code-and-magick/assignees{/user}","branches_url":"https://api.github.com/repos/Napalm005/31893-code-and-magick/branches{/branch}","tags_url":"https://api.github.com/repos/Napalm005/31893-code-and-magick/tags","blobs_url":"https://api.github.com/repos/Napalm005/31893-code-and-magick/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Napalm005/31893-code-and-magick/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Napalm005/31893-code-and-magick/git/refs{/sha}","trees_url":"https://api.github.com/repos/Napalm005/31893-code-and-magick/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Napalm005/31893-code-and-magick/statuses/{sha}","languages_url":"https://api.github.com/repos/Napalm005/31893-code-and-magick/languages","stargazers_url":"https://api.github.com/repos/Napalm005/31893-code-and-magick/stargazers","contributors_url":"https://api.github.com/repos/Napalm005/31893-code-and-magick/contributors","subscribers_url":"https://api.github.com/repos/Napalm005/31893-code-and-magick/subscribers","subscription_url":"https://api.github.com/repos/Napalm005/31893-code-and-magick/subscription","commits_url":"https://api.github.com/repos/Napalm005/31893-code-and-magick/commits{/sha}","git_commits_url":"https://api.github.com/repos/Napalm005/31893-code-and-magick/git/commits{/sha}","comments_url":"https://api.github.com/repos/Napalm005/31893-code-and-magick/comments{/number}","issue_comment_url":"https://api.github.com/repos/Napalm005/31893-code-and-magick/issues/comments{/number}","contents_url":"https://api.github.com/repos/Napalm005/31893-code-and-magick/contents/{+path}","compare_url":"https://api.github.com/repos/Napalm005/31893-code-and-magick/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Napalm005/31893-code-and-magick/merges","archive_url":"https://api.github.com/repos/Napalm005/31893-code-and-magick/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Napalm005/31893-code-and-magick/downloads","issues_url":"https://api.github.com/repos/Napalm005/31893-code-and-magick/issues{/number}","pulls_url":"https://api.github.com/repos/Napalm005/31893-code-and-magick/pulls{/number}","milestones_url":"https://api.github.com/repos/Napalm005/31893-code-and-magick/milestones{/number}","notifications_url":"https://api.github.com/repos/Napalm005/31893-code-and-magick/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Napalm005/31893-code-and-magick/labels{/name}","releases_url":"https://api.github.com/repos/Napalm005/31893-code-and-magick/releases{/id}","deployments_url":"https://api.github.com/repos/Napalm005/31893-code-and-magick/deployments","created_at":"2016-05-26T11:19:46Z","updated_at":"2016-05-26T11:19:47Z","pushed_at":"2016-07-05T10:57:40Z","git_url":"git://github.com/Napalm005/31893-code-and-magick.git","ssh_url":"git@github.com:Napalm005/31893-code-and-magick.git","clone_url":"https://github.com/Napalm005/31893-code-and-magick.git","svn_url":"https://github.com/Napalm005/31893-code-and-magick","homepage":null,"size":1204,"stargazers_count":0,"watchers_count":0,"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":0,"default_branch":"master"}},"base":{"label":"htmlacademy-javascript:master","ref":"master","sha":"4e66c74a8bf24ace38c35230357da7460d55f414","user":{"login":"htmlacademy-javascript","id":14179712,"avatar_url":"https://avatars.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":59744063,"name":"31893-code-and-magick","full_name":"htmlacademy-javascript/31893-code-and-magick","owner":{"login":"htmlacademy-javascript","id":14179712,"avatar_url":"https://avatars.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/31893-code-and-magick","description":"Александр Фролов","fork":false,"url":"https://api.github.com/repos/htmlacademy-javascript/31893-code-and-magick","forks_url":"https://api.github.com/repos/htmlacademy-javascript/31893-code-and-magick/forks","keys_url":"https://api.github.com/repos/htmlacademy-javascript/31893-code-and-magick/keys{/key_id}","collaborators_url":"https://api.github.com/repos/htmlacademy-javascript/31893-code-and-magick/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/htmlacademy-javascript/31893-code-and-magick/teams","hooks_url":"https://api.github.com/repos/htmlacademy-javascript/31893-code-and-magick/hooks","issue_events_url":"https://api.github.com/repos/htmlacademy-javascript/31893-code-and-magick/issues/events{/number}","events_url":"https://api.github.com/repos/htmlacademy-javascript/31893-code-and-magick/events","assignees_url":"https://api.github.com/repos/htmlacademy-javascript/31893-code-and-magick/assignees{/user}","branches_url":"https://api.github.com/repos/htmlacademy-javascript/31893-code-and-magick/branches{/branch}","tags_url":"https://api.github.com/repos/htmlacademy-javascript/31893-code-and-magick/tags","blobs_url":"https://api.github.com/repos/htmlacademy-javascript/31893-code-and-magick/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/htmlacademy-javascript/31893-code-and-magick/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/htmlacademy-javascript/31893-code-and-magick/git/refs{/sha}","trees_url":"https://api.github.com/repos/htmlacademy-javascript/31893-code-and-magick/git/trees{/sha}","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/31893-code-and-magick/statuses/{sha}","languages_url":"https://api.github.com/repos/htmlacademy-javascript/31893-code-and-magick/languages","stargazers_url":"https://api.github.com/repos/htmlacademy-javascript/31893-code-and-magick/stargazers","contributors_url":"https://api.github.com/repos/htmlacademy-javascript/31893-code-and-magick/contributors","subscribers_url":"https://api.github.com/repos/htmlacademy-javascript/31893-code-and-magick/subscribers","subscription_url":"https://api.github.com/repos/htmlacademy-javascript/31893-code-and-magick/subscription","commits_url":"https://api.github.com/repos/htmlacademy-javascript/31893-code-and-magick/commits{/sha}","git_commits_url":"https://api.github.com/repos/htmlacademy-javascript/31893-code-and-magick/git/commits{/sha}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/31893-code-and-magick/comments{/number}","issue_comment_url":"https://api.github.com/repos/htmlacademy-javascript/31893-code-and-magick/issues/comments{/number}","contents_url":"https://api.github.com/repos/htmlacademy-javascript/31893-code-and-magick/contents/{+path}","compare_url":"https://api.github.com/repos/htmlacademy-javascript/31893-code-and-magick/compare/{base}...{head}","merges_url":"https://api.github.com/repos/htmlacademy-javascript/31893-code-and-magick/merges","archive_url":"https://api.github.com/repos/htmlacademy-javascript/31893-code-and-magick/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/htmlacademy-javascript/31893-code-and-magick/downloads","issues_url":"https://api.github.com/repos/htmlacademy-javascript/31893-code-and-magick/issues{/number}","pulls_url":"https://api.github.com/repos/htmlacademy-javascript/31893-code-and-magick/pulls{/number}","milestones_url":"https://api.github.com/repos/htmlacademy-javascript/31893-code-and-magick/milestones{/number}","notifications_url":"https://api.github.com/repos/htmlacademy-javascript/31893-code-and-magick/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/htmlacademy-javascript/31893-code-and-magick/labels{/name}","releases_url":"https://api.github.com/repos/htmlacademy-javascript/31893-code-and-magick/releases{/id}","deployments_url":"https://api.github.com/repos/htmlacademy-javascript/31893-code-and-magick/deployments","created_at":"2016-05-26T11:11:53Z","updated_at":"2016-05-26T17:37:40Z","pushed_at":"2016-07-05T10:57:40Z","git_url":"git://github.com/htmlacademy-javascript/31893-code-and-magick.git","ssh_url":"git@github.com:htmlacademy-javascript/31893-code-and-magick.git","clone_url":"https://github.com/htmlacademy-javascript/31893-code-and-magick.git","svn_url":"https://github.com/htmlacademy-javascript/31893-code-and-magick","homepage":"https://github.com/Napalm005/31893-code-and-magick","size":1205,"stargazers_count":0,"watchers_count":0,"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":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-javascript/31893-code-and-magick/pulls/18"},"html":{"href":"https://github.com/htmlacademy-javascript/31893-code-and-magick/pull/18"},"issue":{"href":"https://api.github.com/repos/htmlacademy-javascript/31893-code-and-magick/issues/18"},"comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/31893-code-and-magick/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/31893-code-and-magick/pulls/18/comments"},"review_comment":{"href":"https://api.github.com/repos/htmlacademy-javascript/31893-code-and-magick/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/htmlacademy-javascript/31893-code-and-magick/pulls/18/commits"},"statuses":{"href":"https://api.github.com/repos/htmlacademy-javascript/31893-code-and-magick/statuses/93ad7832872265e02e17c730e35bbbc3d3c9509d"}}}}
{"actor":{"display_login":"healqq"}}