{"action":"created","comment":{"url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/pulls/comments/70131884","id":70131884,"diff_hunk":"@@ -1 +1,68 @@\n-const app = \"I don't do much.\"\n+function initForm() {\n+  var formTemplate = document.getElementById(\"recipe-form-template\").innerHTML\n+  var template = Handlebars.compile(formTemplate)\n+  document.getElementsByTagName(\"main\")[0].innerHTML = template({'submitAction': 'createRecipe()'})\n+}\n+\n+function createRecipe() {\n+  var recipe = getRecipeVals()\n+  var recipeTemplate = document.getElementById(\"recipe-template\").innerHTML\n+  var template = Handlebars.compile(recipeTemplate)\n+  document.getElementById(\"main\").innerHTML = template(recipe)\n+}\n+\n+function updateRecipe() {\n+  var recipe = getRecipeVals()\n+  var recipeTemplate = document.getElementById(\"recipe-template\").innerHTML\n+  var template = Handlebars.compile(recipeTemplate)\n+  document.getElementById(\"main\").innerHTML = template(recipe)\n+}\n+\n+function displayEditForm() {\n+  var name = document.getElementById(\"nameHeader\").innerText\n+  var description = document.getElementById(\"recipeDescription\").innerText\n+  var ingredientsNodes = document.getElementsByName(\"ingredientsList\")\n+  var ingredients = []\n+  for(var i=0;i<ingredientsNodes.length;i++) {","path":"index.js","position":27,"original_position":27,"commit_id":"abaa0bbffd63cb8d7f3737da9775c5f1a21bbabe","original_commit_id":"abaa0bbffd63cb8d7f3737da9775c5f1a21bbabe","user":{"login":"pletcher","id":2015049,"avatar_url":"https://avatars.githubusercontent.com/u/2015049?v=3","gravatar_id":"","url":"https://api.github.com/users/pletcher","html_url":"https://github.com/pletcher","followers_url":"https://api.github.com/users/pletcher/followers","following_url":"https://api.github.com/users/pletcher/following{/other_user}","gists_url":"https://api.github.com/users/pletcher/gists{/gist_id}","starred_url":"https://api.github.com/users/pletcher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pletcher/subscriptions","organizations_url":"https://api.github.com/users/pletcher/orgs","repos_url":"https://api.github.com/users/pletcher/repos","events_url":"https://api.github.com/users/pletcher/events{/privacy}","received_events_url":"https://api.github.com/users/pletcher/received_events","type":"User","site_admin":false},"body":"What would you think of using `map()` here?\r\n\r\nE.g, `var ingredients = Array.prototype.map.call(ingredientsNodes, node => node.innerText)`?\r\n\r\nHmmm... the Array bit is a little janky. `NodeList`s :(","created_at":"2016-07-08T19:57:40Z","updated_at":"2016-07-08T19:57:40Z","html_url":"https://github.com/learn-co-curriculum/javascript-handlebars-templates-lab/pull/1#discussion_r70131884","pull_request_url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/pulls/comments/70131884"},"html":{"href":"https://github.com/learn-co-curriculum/javascript-handlebars-templates-lab/pull/1#discussion_r70131884"},"pull_request":{"href":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/pulls/1","id":76786816,"html_url":"https://github.com/learn-co-curriculum/javascript-handlebars-templates-lab/pull/1","diff_url":"https://github.com/learn-co-curriculum/javascript-handlebars-templates-lab/pull/1.diff","patch_url":"https://github.com/learn-co-curriculum/javascript-handlebars-templates-lab/pull/1.patch","issue_url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/issues/1","number":1,"state":"open","locked":false,"title":"solution first draft","user":{"login":"scottcreynolds","id":52108,"avatar_url":"https://avatars.githubusercontent.com/u/52108?v=3","gravatar_id":"","url":"https://api.github.com/users/scottcreynolds","html_url":"https://github.com/scottcreynolds","followers_url":"https://api.github.com/users/scottcreynolds/followers","following_url":"https://api.github.com/users/scottcreynolds/following{/other_user}","gists_url":"https://api.github.com/users/scottcreynolds/gists{/gist_id}","starred_url":"https://api.github.com/users/scottcreynolds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottcreynolds/subscriptions","organizations_url":"https://api.github.com/users/scottcreynolds/orgs","repos_url":"https://api.github.com/users/scottcreynolds/repos","events_url":"https://api.github.com/users/scottcreynolds/events{/privacy}","received_events_url":"https://api.github.com/users/scottcreynolds/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-08T17:32:08Z","updated_at":"2016-07-08T19:57:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"566dec169e8676337a605c4ba940f98ded070bae","assignee":{"login":"pletcher","id":2015049,"avatar_url":"https://avatars.githubusercontent.com/u/2015049?v=3","gravatar_id":"","url":"https://api.github.com/users/pletcher","html_url":"https://github.com/pletcher","followers_url":"https://api.github.com/users/pletcher/followers","following_url":"https://api.github.com/users/pletcher/following{/other_user}","gists_url":"https://api.github.com/users/pletcher/gists{/gist_id}","starred_url":"https://api.github.com/users/pletcher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pletcher/subscriptions","organizations_url":"https://api.github.com/users/pletcher/orgs","repos_url":"https://api.github.com/users/pletcher/repos","events_url":"https://api.github.com/users/pletcher/events{/privacy}","received_events_url":"https://api.github.com/users/pletcher/received_events","type":"User","site_admin":false},"assignees":[{"login":"pletcher","id":2015049,"avatar_url":"https://avatars.githubusercontent.com/u/2015049?v=3","gravatar_id":"","url":"https://api.github.com/users/pletcher","html_url":"https://github.com/pletcher","followers_url":"https://api.github.com/users/pletcher/followers","following_url":"https://api.github.com/users/pletcher/following{/other_user}","gists_url":"https://api.github.com/users/pletcher/gists{/gist_id}","starred_url":"https://api.github.com/users/pletcher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pletcher/subscriptions","organizations_url":"https://api.github.com/users/pletcher/orgs","repos_url":"https://api.github.com/users/pletcher/repos","events_url":"https://api.github.com/users/pletcher/events{/privacy}","received_events_url":"https://api.github.com/users/pletcher/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/pulls/1/commits","review_comments_url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/pulls/1/comments","review_comment_url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/pulls/comments{/number}","comments_url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/issues/1/comments","statuses_url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/statuses/abaa0bbffd63cb8d7f3737da9775c5f1a21bbabe","head":{"label":"learn-co-curriculum:wip-solution","ref":"wip-solution","sha":"abaa0bbffd63cb8d7f3737da9775c5f1a21bbabe","user":{"login":"learn-co-curriculum","id":6208017,"avatar_url":"https://avatars.githubusercontent.com/u/6208017?v=3","gravatar_id":"","url":"https://api.github.com/users/learn-co-curriculum","html_url":"https://github.com/learn-co-curriculum","followers_url":"https://api.github.com/users/learn-co-curriculum/followers","following_url":"https://api.github.com/users/learn-co-curriculum/following{/other_user}","gists_url":"https://api.github.com/users/learn-co-curriculum/gists{/gist_id}","starred_url":"https://api.github.com/users/learn-co-curriculum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/learn-co-curriculum/subscriptions","organizations_url":"https://api.github.com/users/learn-co-curriculum/orgs","repos_url":"https://api.github.com/users/learn-co-curriculum/repos","events_url":"https://api.github.com/users/learn-co-curriculum/events{/privacy}","received_events_url":"https://api.github.com/users/learn-co-curriculum/received_events","type":"Organization","site_admin":false},"repo":{"id":61906286,"name":"javascript-handlebars-templates-lab","full_name":"learn-co-curriculum/javascript-handlebars-templates-lab","owner":{"login":"learn-co-curriculum","id":6208017,"avatar_url":"https://avatars.githubusercontent.com/u/6208017?v=3","gravatar_id":"","url":"https://api.github.com/users/learn-co-curriculum","html_url":"https://github.com/learn-co-curriculum","followers_url":"https://api.github.com/users/learn-co-curriculum/followers","following_url":"https://api.github.com/users/learn-co-curriculum/following{/other_user}","gists_url":"https://api.github.com/users/learn-co-curriculum/gists{/gist_id}","starred_url":"https://api.github.com/users/learn-co-curriculum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/learn-co-curriculum/subscriptions","organizations_url":"https://api.github.com/users/learn-co-curriculum/orgs","repos_url":"https://api.github.com/users/learn-co-curriculum/repos","events_url":"https://api.github.com/users/learn-co-curriculum/events{/privacy}","received_events_url":"https://api.github.com/users/learn-co-curriculum/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/learn-co-curriculum/javascript-handlebars-templates-lab","description":null,"fork":false,"url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab","forks_url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/forks","keys_url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/keys{/key_id}","collaborators_url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/teams","hooks_url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/hooks","issue_events_url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/issues/events{/number}","events_url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/events","assignees_url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/assignees{/user}","branches_url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/branches{/branch}","tags_url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/tags","blobs_url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/git/refs{/sha}","trees_url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/git/trees{/sha}","statuses_url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/statuses/{sha}","languages_url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/languages","stargazers_url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/stargazers","contributors_url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/contributors","subscribers_url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/subscribers","subscription_url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/subscription","commits_url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/commits{/sha}","git_commits_url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/git/commits{/sha}","comments_url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/comments{/number}","issue_comment_url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/issues/comments{/number}","contents_url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/contents/{+path}","compare_url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/compare/{base}...{head}","merges_url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/merges","archive_url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/downloads","issues_url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/issues{/number}","pulls_url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/pulls{/number}","milestones_url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/milestones{/number}","notifications_url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/labels{/name}","releases_url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/releases{/id}","deployments_url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/deployments","created_at":"2016-06-24T19:00:58Z","updated_at":"2016-06-24T19:32:45Z","pushed_at":"2016-07-08T17:32:27Z","git_url":"git://github.com/learn-co-curriculum/javascript-handlebars-templates-lab.git","ssh_url":"git@github.com:learn-co-curriculum/javascript-handlebars-templates-lab.git","clone_url":"https://github.com/learn-co-curriculum/javascript-handlebars-templates-lab.git","svn_url":"https://github.com/learn-co-curriculum/javascript-handlebars-templates-lab","homepage":null,"size":44,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"learn-co-curriculum:solution","ref":"solution","sha":"226d17ccc9de569c7dc0c0e8151958a093ae42e1","user":{"login":"learn-co-curriculum","id":6208017,"avatar_url":"https://avatars.githubusercontent.com/u/6208017?v=3","gravatar_id":"","url":"https://api.github.com/users/learn-co-curriculum","html_url":"https://github.com/learn-co-curriculum","followers_url":"https://api.github.com/users/learn-co-curriculum/followers","following_url":"https://api.github.com/users/learn-co-curriculum/following{/other_user}","gists_url":"https://api.github.com/users/learn-co-curriculum/gists{/gist_id}","starred_url":"https://api.github.com/users/learn-co-curriculum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/learn-co-curriculum/subscriptions","organizations_url":"https://api.github.com/users/learn-co-curriculum/orgs","repos_url":"https://api.github.com/users/learn-co-curriculum/repos","events_url":"https://api.github.com/users/learn-co-curriculum/events{/privacy}","received_events_url":"https://api.github.com/users/learn-co-curriculum/received_events","type":"Organization","site_admin":false},"repo":{"id":61906286,"name":"javascript-handlebars-templates-lab","full_name":"learn-co-curriculum/javascript-handlebars-templates-lab","owner":{"login":"learn-co-curriculum","id":6208017,"avatar_url":"https://avatars.githubusercontent.com/u/6208017?v=3","gravatar_id":"","url":"https://api.github.com/users/learn-co-curriculum","html_url":"https://github.com/learn-co-curriculum","followers_url":"https://api.github.com/users/learn-co-curriculum/followers","following_url":"https://api.github.com/users/learn-co-curriculum/following{/other_user}","gists_url":"https://api.github.com/users/learn-co-curriculum/gists{/gist_id}","starred_url":"https://api.github.com/users/learn-co-curriculum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/learn-co-curriculum/subscriptions","organizations_url":"https://api.github.com/users/learn-co-curriculum/orgs","repos_url":"https://api.github.com/users/learn-co-curriculum/repos","events_url":"https://api.github.com/users/learn-co-curriculum/events{/privacy}","received_events_url":"https://api.github.com/users/learn-co-curriculum/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/learn-co-curriculum/javascript-handlebars-templates-lab","description":null,"fork":false,"url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab","forks_url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/forks","keys_url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/keys{/key_id}","collaborators_url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/teams","hooks_url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/hooks","issue_events_url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/issues/events{/number}","events_url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/events","assignees_url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/assignees{/user}","branches_url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/branches{/branch}","tags_url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/tags","blobs_url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/git/refs{/sha}","trees_url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/git/trees{/sha}","statuses_url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/statuses/{sha}","languages_url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/languages","stargazers_url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/stargazers","contributors_url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/contributors","subscribers_url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/subscribers","subscription_url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/subscription","commits_url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/commits{/sha}","git_commits_url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/git/commits{/sha}","comments_url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/comments{/number}","issue_comment_url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/issues/comments{/number}","contents_url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/contents/{+path}","compare_url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/compare/{base}...{head}","merges_url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/merges","archive_url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/downloads","issues_url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/issues{/number}","pulls_url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/pulls{/number}","milestones_url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/milestones{/number}","notifications_url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/labels{/name}","releases_url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/releases{/id}","deployments_url":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/deployments","created_at":"2016-06-24T19:00:58Z","updated_at":"2016-06-24T19:32:45Z","pushed_at":"2016-07-08T17:32:27Z","git_url":"git://github.com/learn-co-curriculum/javascript-handlebars-templates-lab.git","ssh_url":"git@github.com:learn-co-curriculum/javascript-handlebars-templates-lab.git","clone_url":"https://github.com/learn-co-curriculum/javascript-handlebars-templates-lab.git","svn_url":"https://github.com/learn-co-curriculum/javascript-handlebars-templates-lab","homepage":null,"size":44,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/pulls/1"},"html":{"href":"https://github.com/learn-co-curriculum/javascript-handlebars-templates-lab/pull/1"},"issue":{"href":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/issues/1"},"comments":{"href":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/learn-co-curriculum/javascript-handlebars-templates-lab/statuses/abaa0bbffd63cb8d7f3737da9775c5f1a21bbabe"}}}}
{"actor":{"display_login":"pletcher"}}