{"action":"created","comment":{"url":"https://api.github.com/repos/danjwinter/idea_box/pulls/comments/57270747","id":57270747,"diff_hunk":"@@ -0,0 +1,34 @@\n+var RequestService = function() {","path":"app/assets/javascripts/request_service.js","position":1,"original_position":1,"commit_id":"4a01c53fb4b01fdd8995cc7384f2a5c38320e9b1","original_commit_id":"4a01c53fb4b01fdd8995cc7384f2a5c38320e9b1","user":{"login":"stevekinney","id":251000,"avatar_url":"https://avatars.githubusercontent.com/u/251000?v=3","gravatar_id":"","url":"https://api.github.com/users/stevekinney","html_url":"https://github.com/stevekinney","followers_url":"https://api.github.com/users/stevekinney/followers","following_url":"https://api.github.com/users/stevekinney/following{/other_user}","gists_url":"https://api.github.com/users/stevekinney/gists{/gist_id}","starred_url":"https://api.github.com/users/stevekinney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevekinney/subscriptions","organizations_url":"https://api.github.com/users/stevekinney/orgs","repos_url":"https://api.github.com/users/stevekinney/repos","events_url":"https://api.github.com/users/stevekinney/events{/privacy}","received_events_url":"https://api.github.com/users/stevekinney/received_events","type":"User","site_admin":false},"body":"You probably don't need to add these to the prototype. You can just create a singleton with `{}` and add the properties to get the same effect with less memory overhead.","created_at":"2016-03-24T03:27:08Z","updated_at":"2016-03-24T03:27:08Z","html_url":"https://github.com/danjwinter/idea_box/pull/1#discussion_r57270747","pull_request_url":"https://api.github.com/repos/danjwinter/idea_box/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/danjwinter/idea_box/pulls/comments/57270747"},"html":{"href":"https://github.com/danjwinter/idea_box/pull/1#discussion_r57270747"},"pull_request":{"href":"https://api.github.com/repos/danjwinter/idea_box/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/danjwinter/idea_box/pulls/1","id":63939853,"html_url":"https://github.com/danjwinter/idea_box/pull/1","diff_url":"https://github.com/danjwinter/idea_box/pull/1.diff","patch_url":"https://github.com/danjwinter/idea_box/pull/1.patch","issue_url":"https://api.github.com/repos/danjwinter/idea_box/issues/1","number":1,"state":"open","locked":false,"title":"[WIP] In line editing","user":{"login":"danjwinter","id":13614117,"avatar_url":"https://avatars.githubusercontent.com/u/13614117?v=3","gravatar_id":"","url":"https://api.github.com/users/danjwinter","html_url":"https://github.com/danjwinter","followers_url":"https://api.github.com/users/danjwinter/followers","following_url":"https://api.github.com/users/danjwinter/following{/other_user}","gists_url":"https://api.github.com/users/danjwinter/gists{/gist_id}","starred_url":"https://api.github.com/users/danjwinter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danjwinter/subscriptions","organizations_url":"https://api.github.com/users/danjwinter/orgs","repos_url":"https://api.github.com/users/danjwinter/repos","events_url":"https://api.github.com/users/danjwinter/events{/privacy}","received_events_url":"https://api.github.com/users/danjwinter/received_events","type":"User","site_admin":false},"body":"Add in line editing when title or body are clicked. \r\n\r\n@stevekinney or @rrgayhart I have this working on the first time you click to edit the body or title but if you try to click on it again, it is no longer listening for the click event. I tried recursively calling the function again to set the event listener after the event was completed or creating a duplicated version of the method and calling that but no dice. Any ideas?","created_at":"2016-03-23T19:32:37Z","updated_at":"2016-03-24T03:27:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d139f5e1768ac0333a65a0a19da26a92e7ab1283","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/danjwinter/idea_box/pulls/1/commits","review_comments_url":"https://api.github.com/repos/danjwinter/idea_box/pulls/1/comments","review_comment_url":"https://api.github.com/repos/danjwinter/idea_box/pulls/comments{/number}","comments_url":"https://api.github.com/repos/danjwinter/idea_box/issues/1/comments","statuses_url":"https://api.github.com/repos/danjwinter/idea_box/statuses/4a01c53fb4b01fdd8995cc7384f2a5c38320e9b1","head":{"label":"danjwinter:in_line_editing","ref":"in_line_editing","sha":"4a01c53fb4b01fdd8995cc7384f2a5c38320e9b1","user":{"login":"danjwinter","id":13614117,"avatar_url":"https://avatars.githubusercontent.com/u/13614117?v=3","gravatar_id":"","url":"https://api.github.com/users/danjwinter","html_url":"https://github.com/danjwinter","followers_url":"https://api.github.com/users/danjwinter/followers","following_url":"https://api.github.com/users/danjwinter/following{/other_user}","gists_url":"https://api.github.com/users/danjwinter/gists{/gist_id}","starred_url":"https://api.github.com/users/danjwinter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danjwinter/subscriptions","organizations_url":"https://api.github.com/users/danjwinter/orgs","repos_url":"https://api.github.com/users/danjwinter/repos","events_url":"https://api.github.com/users/danjwinter/events{/privacy}","received_events_url":"https://api.github.com/users/danjwinter/received_events","type":"User","site_admin":false},"repo":{"id":54438187,"name":"idea_box","full_name":"danjwinter/idea_box","owner":{"login":"danjwinter","id":13614117,"avatar_url":"https://avatars.githubusercontent.com/u/13614117?v=3","gravatar_id":"","url":"https://api.github.com/users/danjwinter","html_url":"https://github.com/danjwinter","followers_url":"https://api.github.com/users/danjwinter/followers","following_url":"https://api.github.com/users/danjwinter/following{/other_user}","gists_url":"https://api.github.com/users/danjwinter/gists{/gist_id}","starred_url":"https://api.github.com/users/danjwinter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danjwinter/subscriptions","organizations_url":"https://api.github.com/users/danjwinter/orgs","repos_url":"https://api.github.com/users/danjwinter/repos","events_url":"https://api.github.com/users/danjwinter/events{/privacy}","received_events_url":"https://api.github.com/users/danjwinter/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/danjwinter/idea_box","description":null,"fork":false,"url":"https://api.github.com/repos/danjwinter/idea_box","forks_url":"https://api.github.com/repos/danjwinter/idea_box/forks","keys_url":"https://api.github.com/repos/danjwinter/idea_box/keys{/key_id}","collaborators_url":"https://api.github.com/repos/danjwinter/idea_box/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/danjwinter/idea_box/teams","hooks_url":"https://api.github.com/repos/danjwinter/idea_box/hooks","issue_events_url":"https://api.github.com/repos/danjwinter/idea_box/issues/events{/number}","events_url":"https://api.github.com/repos/danjwinter/idea_box/events","assignees_url":"https://api.github.com/repos/danjwinter/idea_box/assignees{/user}","branches_url":"https://api.github.com/repos/danjwinter/idea_box/branches{/branch}","tags_url":"https://api.github.com/repos/danjwinter/idea_box/tags","blobs_url":"https://api.github.com/repos/danjwinter/idea_box/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/danjwinter/idea_box/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/danjwinter/idea_box/git/refs{/sha}","trees_url":"https://api.github.com/repos/danjwinter/idea_box/git/trees{/sha}","statuses_url":"https://api.github.com/repos/danjwinter/idea_box/statuses/{sha}","languages_url":"https://api.github.com/repos/danjwinter/idea_box/languages","stargazers_url":"https://api.github.com/repos/danjwinter/idea_box/stargazers","contributors_url":"https://api.github.com/repos/danjwinter/idea_box/contributors","subscribers_url":"https://api.github.com/repos/danjwinter/idea_box/subscribers","subscription_url":"https://api.github.com/repos/danjwinter/idea_box/subscription","commits_url":"https://api.github.com/repos/danjwinter/idea_box/commits{/sha}","git_commits_url":"https://api.github.com/repos/danjwinter/idea_box/git/commits{/sha}","comments_url":"https://api.github.com/repos/danjwinter/idea_box/comments{/number}","issue_comment_url":"https://api.github.com/repos/danjwinter/idea_box/issues/comments{/number}","contents_url":"https://api.github.com/repos/danjwinter/idea_box/contents/{+path}","compare_url":"https://api.github.com/repos/danjwinter/idea_box/compare/{base}...{head}","merges_url":"https://api.github.com/repos/danjwinter/idea_box/merges","archive_url":"https://api.github.com/repos/danjwinter/idea_box/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/danjwinter/idea_box/downloads","issues_url":"https://api.github.com/repos/danjwinter/idea_box/issues{/number}","pulls_url":"https://api.github.com/repos/danjwinter/idea_box/pulls{/number}","milestones_url":"https://api.github.com/repos/danjwinter/idea_box/milestones{/number}","notifications_url":"https://api.github.com/repos/danjwinter/idea_box/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/danjwinter/idea_box/labels{/name}","releases_url":"https://api.github.com/repos/danjwinter/idea_box/releases{/id}","deployments_url":"https://api.github.com/repos/danjwinter/idea_box/deployments","created_at":"2016-03-22T02:14:41Z","updated_at":"2016-03-22T02:38:41Z","pushed_at":"2016-03-24T02:08:29Z","git_url":"git://github.com/danjwinter/idea_box.git","ssh_url":"git@github.com:danjwinter/idea_box.git","clone_url":"https://github.com/danjwinter/idea_box.git","svn_url":"https://github.com/danjwinter/idea_box","homepage":null,"size":41,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"initial_crud"}},"base":{"label":"danjwinter:initial_crud","ref":"initial_crud","sha":"8b2ba7d44b8295d364753cfe19f5dfe6c37c3a92","user":{"login":"danjwinter","id":13614117,"avatar_url":"https://avatars.githubusercontent.com/u/13614117?v=3","gravatar_id":"","url":"https://api.github.com/users/danjwinter","html_url":"https://github.com/danjwinter","followers_url":"https://api.github.com/users/danjwinter/followers","following_url":"https://api.github.com/users/danjwinter/following{/other_user}","gists_url":"https://api.github.com/users/danjwinter/gists{/gist_id}","starred_url":"https://api.github.com/users/danjwinter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danjwinter/subscriptions","organizations_url":"https://api.github.com/users/danjwinter/orgs","repos_url":"https://api.github.com/users/danjwinter/repos","events_url":"https://api.github.com/users/danjwinter/events{/privacy}","received_events_url":"https://api.github.com/users/danjwinter/received_events","type":"User","site_admin":false},"repo":{"id":54438187,"name":"idea_box","full_name":"danjwinter/idea_box","owner":{"login":"danjwinter","id":13614117,"avatar_url":"https://avatars.githubusercontent.com/u/13614117?v=3","gravatar_id":"","url":"https://api.github.com/users/danjwinter","html_url":"https://github.com/danjwinter","followers_url":"https://api.github.com/users/danjwinter/followers","following_url":"https://api.github.com/users/danjwinter/following{/other_user}","gists_url":"https://api.github.com/users/danjwinter/gists{/gist_id}","starred_url":"https://api.github.com/users/danjwinter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danjwinter/subscriptions","organizations_url":"https://api.github.com/users/danjwinter/orgs","repos_url":"https://api.github.com/users/danjwinter/repos","events_url":"https://api.github.com/users/danjwinter/events{/privacy}","received_events_url":"https://api.github.com/users/danjwinter/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/danjwinter/idea_box","description":null,"fork":false,"url":"https://api.github.com/repos/danjwinter/idea_box","forks_url":"https://api.github.com/repos/danjwinter/idea_box/forks","keys_url":"https://api.github.com/repos/danjwinter/idea_box/keys{/key_id}","collaborators_url":"https://api.github.com/repos/danjwinter/idea_box/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/danjwinter/idea_box/teams","hooks_url":"https://api.github.com/repos/danjwinter/idea_box/hooks","issue_events_url":"https://api.github.com/repos/danjwinter/idea_box/issues/events{/number}","events_url":"https://api.github.com/repos/danjwinter/idea_box/events","assignees_url":"https://api.github.com/repos/danjwinter/idea_box/assignees{/user}","branches_url":"https://api.github.com/repos/danjwinter/idea_box/branches{/branch}","tags_url":"https://api.github.com/repos/danjwinter/idea_box/tags","blobs_url":"https://api.github.com/repos/danjwinter/idea_box/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/danjwinter/idea_box/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/danjwinter/idea_box/git/refs{/sha}","trees_url":"https://api.github.com/repos/danjwinter/idea_box/git/trees{/sha}","statuses_url":"https://api.github.com/repos/danjwinter/idea_box/statuses/{sha}","languages_url":"https://api.github.com/repos/danjwinter/idea_box/languages","stargazers_url":"https://api.github.com/repos/danjwinter/idea_box/stargazers","contributors_url":"https://api.github.com/repos/danjwinter/idea_box/contributors","subscribers_url":"https://api.github.com/repos/danjwinter/idea_box/subscribers","subscription_url":"https://api.github.com/repos/danjwinter/idea_box/subscription","commits_url":"https://api.github.com/repos/danjwinter/idea_box/commits{/sha}","git_commits_url":"https://api.github.com/repos/danjwinter/idea_box/git/commits{/sha}","comments_url":"https://api.github.com/repos/danjwinter/idea_box/comments{/number}","issue_comment_url":"https://api.github.com/repos/danjwinter/idea_box/issues/comments{/number}","contents_url":"https://api.github.com/repos/danjwinter/idea_box/contents/{+path}","compare_url":"https://api.github.com/repos/danjwinter/idea_box/compare/{base}...{head}","merges_url":"https://api.github.com/repos/danjwinter/idea_box/merges","archive_url":"https://api.github.com/repos/danjwinter/idea_box/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/danjwinter/idea_box/downloads","issues_url":"https://api.github.com/repos/danjwinter/idea_box/issues{/number}","pulls_url":"https://api.github.com/repos/danjwinter/idea_box/pulls{/number}","milestones_url":"https://api.github.com/repos/danjwinter/idea_box/milestones{/number}","notifications_url":"https://api.github.com/repos/danjwinter/idea_box/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/danjwinter/idea_box/labels{/name}","releases_url":"https://api.github.com/repos/danjwinter/idea_box/releases{/id}","deployments_url":"https://api.github.com/repos/danjwinter/idea_box/deployments","created_at":"2016-03-22T02:14:41Z","updated_at":"2016-03-22T02:38:41Z","pushed_at":"2016-03-24T02:08:29Z","git_url":"git://github.com/danjwinter/idea_box.git","ssh_url":"git@github.com:danjwinter/idea_box.git","clone_url":"https://github.com/danjwinter/idea_box.git","svn_url":"https://github.com/danjwinter/idea_box","homepage":null,"size":41,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"initial_crud"}},"_links":{"self":{"href":"https://api.github.com/repos/danjwinter/idea_box/pulls/1"},"html":{"href":"https://github.com/danjwinter/idea_box/pull/1"},"issue":{"href":"https://api.github.com/repos/danjwinter/idea_box/issues/1"},"comments":{"href":"https://api.github.com/repos/danjwinter/idea_box/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/danjwinter/idea_box/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/danjwinter/idea_box/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/danjwinter/idea_box/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/danjwinter/idea_box/statuses/4a01c53fb4b01fdd8995cc7384f2a5c38320e9b1"}}}}