{"action":"created","comment":{"url":"https://api.github.com/repos/emberjs/guides/pulls/comments/48358946","id":48358946,"diff_hunk":"@@ -1,25 +1,137 @@\n-Part of what makes components so useful is that they let you take\n-complete control of a section of the DOM.  This allows for direct DOM\n-manipulation, listening and responding to browser events, and using 3rd\n-party JavaScript libraries in your Ember app.\n+Part of what makes components so useful is that they let you take complete control of a section of the DOM.\n+This allows for direct DOM manipulation, listening and responding to browser events, and using 3rd party JavaScript libraries in your Ember app.\n \n-As components are rendered, re-rendered and finally removed, Ember\n-provides _lifecycle hooks_ that allow you to run code at specific\n-times in a component's life.\n+As components are rendered, re-rendered and finally removed, Ember provides _lifecycle hooks_ that allow you to run code at specific times in a component's life.\n \n-To get the most use out of a component, it is important to understand\n-these lifecycle methods. The following hooks are a few of the most\n-useful and commonly used in Ember apps.\n+To get the most use out of a component, it is important to understand these lifecycle methods.\n \n-## Attaching to the Component Element\n+To make use of these hooks simply override them within your component.","path":"source/components/the-component-lifecycle.md","position":19,"original_position":19,"commit_id":"df377ec0461e066efb3c302eb97ef4174be5873a","original_commit_id":"df377ec0461e066efb3c302eb97ef4174be5873a","user":{"login":"toddjordan","id":3609063,"avatar_url":"https://avatars.githubusercontent.com/u/3609063?v=3","gravatar_id":"","url":"https://api.github.com/users/toddjordan","html_url":"https://github.com/toddjordan","followers_url":"https://api.github.com/users/toddjordan/followers","following_url":"https://api.github.com/users/toddjordan/following{/other_user}","gists_url":"https://api.github.com/users/toddjordan/gists{/gist_id}","starred_url":"https://api.github.com/users/toddjordan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toddjordan/subscriptions","organizations_url":"https://api.github.com/users/toddjordan/orgs","repos_url":"https://api.github.com/users/toddjordan/repos","events_url":"https://api.github.com/users/toddjordan/events{/privacy}","received_events_url":"https://api.github.com/users/toddjordan/received_events","type":"User","site_admin":false},"body":"I guess the thing that might be confusing is that most of the lifecycle hooks aren't actually functions on the parent class.  It seems to be more of a template pattern where the rendering code will call these methods if they are there.\r\n\r\nSo a developer might think (as I initially did) that since I'm not overriding any parent functionality, then I don't have to call `_super`, but there still is a good case to use it because of possible mixins to your components which I mention here.","created_at":"2015-12-23T16:31:35Z","updated_at":"2015-12-23T16:31:35Z","html_url":"https://github.com/emberjs/guides/pull/1089#discussion_r48358946","pull_request_url":"https://api.github.com/repos/emberjs/guides/pulls/1089","_links":{"self":{"href":"https://api.github.com/repos/emberjs/guides/pulls/comments/48358946"},"html":{"href":"https://github.com/emberjs/guides/pull/1089#discussion_r48358946"},"pull_request":{"href":"https://api.github.com/repos/emberjs/guides/pulls/1089"}}},"pull_request":{"url":"https://api.github.com/repos/emberjs/guides/pulls/1089","id":53940224,"html_url":"https://github.com/emberjs/guides/pull/1089","diff_url":"https://github.com/emberjs/guides/pull/1089.diff","patch_url":"https://github.com/emberjs/guides/pull/1089.patch","issue_url":"https://api.github.com/repos/emberjs/guides/issues/1089","number":1089,"state":"open","locked":false,"title":"Add lifecycle hook documentation","user":{"login":"toddjordan","id":3609063,"avatar_url":"https://avatars.githubusercontent.com/u/3609063?v=3","gravatar_id":"","url":"https://api.github.com/users/toddjordan","html_url":"https://github.com/toddjordan","followers_url":"https://api.github.com/users/toddjordan/followers","following_url":"https://api.github.com/users/toddjordan/following{/other_user}","gists_url":"https://api.github.com/users/toddjordan/gists{/gist_id}","starred_url":"https://api.github.com/users/toddjordan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toddjordan/subscriptions","organizations_url":"https://api.github.com/users/toddjordan/orgs","repos_url":"https://api.github.com/users/toddjordan/repos","events_url":"https://api.github.com/users/toddjordan/events{/privacy}","received_events_url":"https://api.github.com/users/toddjordan/received_events","type":"User","site_admin":false},"body":"Still working on this but I figured I would get it out for feedback.  \r\n\r\nThe approach here is as follows: \r\nList the hooks in order similar to the original blog post (which I think is super useful), and make the hooks linkable to examples further down the page.  That way readers can learn the order of hooks, and also see real examples.","created_at":"2015-12-17T06:43:03Z","updated_at":"2015-12-23T16:31:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"378e8e6d10ce1e556ad8523ca4a6b45728f4e3ec","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/emberjs/guides/pulls/1089/commits","review_comments_url":"https://api.github.com/repos/emberjs/guides/pulls/1089/comments","review_comment_url":"https://api.github.com/repos/emberjs/guides/pulls/comments{/number}","comments_url":"https://api.github.com/repos/emberjs/guides/issues/1089/comments","statuses_url":"https://api.github.com/repos/emberjs/guides/statuses/df377ec0461e066efb3c302eb97ef4174be5873a","head":{"label":"toddjordan:document-lifecycle-hooks","ref":"document-lifecycle-hooks","sha":"df377ec0461e066efb3c302eb97ef4174be5873a","user":{"login":"toddjordan","id":3609063,"avatar_url":"https://avatars.githubusercontent.com/u/3609063?v=3","gravatar_id":"","url":"https://api.github.com/users/toddjordan","html_url":"https://github.com/toddjordan","followers_url":"https://api.github.com/users/toddjordan/followers","following_url":"https://api.github.com/users/toddjordan/following{/other_user}","gists_url":"https://api.github.com/users/toddjordan/gists{/gist_id}","starred_url":"https://api.github.com/users/toddjordan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toddjordan/subscriptions","organizations_url":"https://api.github.com/users/toddjordan/orgs","repos_url":"https://api.github.com/users/toddjordan/repos","events_url":"https://api.github.com/users/toddjordan/events{/privacy}","received_events_url":"https://api.github.com/users/toddjordan/received_events","type":"User","site_admin":false},"repo":{"id":39234886,"name":"guides","full_name":"toddjordan/guides","owner":{"login":"toddjordan","id":3609063,"avatar_url":"https://avatars.githubusercontent.com/u/3609063?v=3","gravatar_id":"","url":"https://api.github.com/users/toddjordan","html_url":"https://github.com/toddjordan","followers_url":"https://api.github.com/users/toddjordan/followers","following_url":"https://api.github.com/users/toddjordan/following{/other_user}","gists_url":"https://api.github.com/users/toddjordan/gists{/gist_id}","starred_url":"https://api.github.com/users/toddjordan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toddjordan/subscriptions","organizations_url":"https://api.github.com/users/toddjordan/orgs","repos_url":"https://api.github.com/users/toddjordan/repos","events_url":"https://api.github.com/users/toddjordan/events{/privacy}","received_events_url":"https://api.github.com/users/toddjordan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/toddjordan/guides","description":"The source for http://guides.emberjs.com","fork":true,"url":"https://api.github.com/repos/toddjordan/guides","forks_url":"https://api.github.com/repos/toddjordan/guides/forks","keys_url":"https://api.github.com/repos/toddjordan/guides/keys{/key_id}","collaborators_url":"https://api.github.com/repos/toddjordan/guides/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/toddjordan/guides/teams","hooks_url":"https://api.github.com/repos/toddjordan/guides/hooks","issue_events_url":"https://api.github.com/repos/toddjordan/guides/issues/events{/number}","events_url":"https://api.github.com/repos/toddjordan/guides/events","assignees_url":"https://api.github.com/repos/toddjordan/guides/assignees{/user}","branches_url":"https://api.github.com/repos/toddjordan/guides/branches{/branch}","tags_url":"https://api.github.com/repos/toddjordan/guides/tags","blobs_url":"https://api.github.com/repos/toddjordan/guides/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/toddjordan/guides/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/toddjordan/guides/git/refs{/sha}","trees_url":"https://api.github.com/repos/toddjordan/guides/git/trees{/sha}","statuses_url":"https://api.github.com/repos/toddjordan/guides/statuses/{sha}","languages_url":"https://api.github.com/repos/toddjordan/guides/languages","stargazers_url":"https://api.github.com/repos/toddjordan/guides/stargazers","contributors_url":"https://api.github.com/repos/toddjordan/guides/contributors","subscribers_url":"https://api.github.com/repos/toddjordan/guides/subscribers","subscription_url":"https://api.github.com/repos/toddjordan/guides/subscription","commits_url":"https://api.github.com/repos/toddjordan/guides/commits{/sha}","git_commits_url":"https://api.github.com/repos/toddjordan/guides/git/commits{/sha}","comments_url":"https://api.github.com/repos/toddjordan/guides/comments{/number}","issue_comment_url":"https://api.github.com/repos/toddjordan/guides/issues/comments{/number}","contents_url":"https://api.github.com/repos/toddjordan/guides/contents/{+path}","compare_url":"https://api.github.com/repos/toddjordan/guides/compare/{base}...{head}","merges_url":"https://api.github.com/repos/toddjordan/guides/merges","archive_url":"https://api.github.com/repos/toddjordan/guides/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/toddjordan/guides/downloads","issues_url":"https://api.github.com/repos/toddjordan/guides/issues{/number}","pulls_url":"https://api.github.com/repos/toddjordan/guides/pulls{/number}","milestones_url":"https://api.github.com/repos/toddjordan/guides/milestones{/number}","notifications_url":"https://api.github.com/repos/toddjordan/guides/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/toddjordan/guides/labels{/name}","releases_url":"https://api.github.com/repos/toddjordan/guides/releases{/id}","created_at":"2015-07-17T04:29:07Z","updated_at":"2015-12-17T01:32:27Z","pushed_at":"2015-12-18T15:30:00Z","git_url":"git://github.com/toddjordan/guides.git","ssh_url":"git@github.com:toddjordan/guides.git","clone_url":"https://github.com/toddjordan/guides.git","svn_url":"https://github.com/toddjordan/guides","homepage":null,"size":27001,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"emberjs:master","ref":"master","sha":"60b85bcbe47b04e305b36ba74361605c9e9fb68e","user":{"login":"emberjs","id":1253363,"avatar_url":"https://avatars.githubusercontent.com/u/1253363?v=3","gravatar_id":"","url":"https://api.github.com/users/emberjs","html_url":"https://github.com/emberjs","followers_url":"https://api.github.com/users/emberjs/followers","following_url":"https://api.github.com/users/emberjs/following{/other_user}","gists_url":"https://api.github.com/users/emberjs/gists{/gist_id}","starred_url":"https://api.github.com/users/emberjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emberjs/subscriptions","organizations_url":"https://api.github.com/users/emberjs/orgs","repos_url":"https://api.github.com/users/emberjs/repos","events_url":"https://api.github.com/users/emberjs/events{/privacy}","received_events_url":"https://api.github.com/users/emberjs/received_events","type":"Organization","site_admin":false},"repo":{"id":22767401,"name":"guides","full_name":"emberjs/guides","owner":{"login":"emberjs","id":1253363,"avatar_url":"https://avatars.githubusercontent.com/u/1253363?v=3","gravatar_id":"","url":"https://api.github.com/users/emberjs","html_url":"https://github.com/emberjs","followers_url":"https://api.github.com/users/emberjs/followers","following_url":"https://api.github.com/users/emberjs/following{/other_user}","gists_url":"https://api.github.com/users/emberjs/gists{/gist_id}","starred_url":"https://api.github.com/users/emberjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emberjs/subscriptions","organizations_url":"https://api.github.com/users/emberjs/orgs","repos_url":"https://api.github.com/users/emberjs/repos","events_url":"https://api.github.com/users/emberjs/events{/privacy}","received_events_url":"https://api.github.com/users/emberjs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/emberjs/guides","description":"The source for http://guides.emberjs.com","fork":false,"url":"https://api.github.com/repos/emberjs/guides","forks_url":"https://api.github.com/repos/emberjs/guides/forks","keys_url":"https://api.github.com/repos/emberjs/guides/keys{/key_id}","collaborators_url":"https://api.github.com/repos/emberjs/guides/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/emberjs/guides/teams","hooks_url":"https://api.github.com/repos/emberjs/guides/hooks","issue_events_url":"https://api.github.com/repos/emberjs/guides/issues/events{/number}","events_url":"https://api.github.com/repos/emberjs/guides/events","assignees_url":"https://api.github.com/repos/emberjs/guides/assignees{/user}","branches_url":"https://api.github.com/repos/emberjs/guides/branches{/branch}","tags_url":"https://api.github.com/repos/emberjs/guides/tags","blobs_url":"https://api.github.com/repos/emberjs/guides/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/emberjs/guides/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/emberjs/guides/git/refs{/sha}","trees_url":"https://api.github.com/repos/emberjs/guides/git/trees{/sha}","statuses_url":"https://api.github.com/repos/emberjs/guides/statuses/{sha}","languages_url":"https://api.github.com/repos/emberjs/guides/languages","stargazers_url":"https://api.github.com/repos/emberjs/guides/stargazers","contributors_url":"https://api.github.com/repos/emberjs/guides/contributors","subscribers_url":"https://api.github.com/repos/emberjs/guides/subscribers","subscription_url":"https://api.github.com/repos/emberjs/guides/subscription","commits_url":"https://api.github.com/repos/emberjs/guides/commits{/sha}","git_commits_url":"https://api.github.com/repos/emberjs/guides/git/commits{/sha}","comments_url":"https://api.github.com/repos/emberjs/guides/comments{/number}","issue_comment_url":"https://api.github.com/repos/emberjs/guides/issues/comments{/number}","contents_url":"https://api.github.com/repos/emberjs/guides/contents/{+path}","compare_url":"https://api.github.com/repos/emberjs/guides/compare/{base}...{head}","merges_url":"https://api.github.com/repos/emberjs/guides/merges","archive_url":"https://api.github.com/repos/emberjs/guides/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/emberjs/guides/downloads","issues_url":"https://api.github.com/repos/emberjs/guides/issues{/number}","pulls_url":"https://api.github.com/repos/emberjs/guides/pulls{/number}","milestones_url":"https://api.github.com/repos/emberjs/guides/milestones{/number}","notifications_url":"https://api.github.com/repos/emberjs/guides/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/emberjs/guides/labels{/name}","releases_url":"https://api.github.com/repos/emberjs/guides/releases{/id}","created_at":"2014-08-08T18:25:02Z","updated_at":"2015-12-19T22:50:05Z","pushed_at":"2015-12-23T11:40:21Z","git_url":"git://github.com/emberjs/guides.git","ssh_url":"git@github.com:emberjs/guides.git","clone_url":"https://github.com/emberjs/guides.git","svn_url":"https://github.com/emberjs/guides","homepage":null,"size":28054,"stargazers_count":167,"watchers_count":167,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":507,"mirror_url":null,"open_issues_count":38,"forks":507,"open_issues":38,"watchers":167,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/emberjs/guides/pulls/1089"},"html":{"href":"https://github.com/emberjs/guides/pull/1089"},"issue":{"href":"https://api.github.com/repos/emberjs/guides/issues/1089"},"comments":{"href":"https://api.github.com/repos/emberjs/guides/issues/1089/comments"},"review_comments":{"href":"https://api.github.com/repos/emberjs/guides/pulls/1089/comments"},"review_comment":{"href":"https://api.github.com/repos/emberjs/guides/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/emberjs/guides/pulls/1089/commits"},"statuses":{"href":"https://api.github.com/repos/emberjs/guides/statuses/df377ec0461e066efb3c302eb97ef4174be5873a"}}}}