{"action":"created","comment":{"url":"https://api.github.com/repos/elliehoward/Eatme/pulls/comments/82225894","pull_request_review_id":3147735,"id":82225894,"diff_hunk":"@@ -1,112 +1,41 @@\n-var mealsJSON = {\n-  'meals': {\n-    'breakfast':[\n-      {\n-        'name': 'Breakfast Burrito',\n-        'ingredients': {'tortilla': 1, 'eggs': 2, 'potatoes': 1, 'cheese (in cups)': 0.125, 'onion': 0.5}\n-      },\n-      {\n-        'name': 'Avocado Toast',\n-        'ingredients': {'bread': 2, 'avocado': 1, 'hummus': 0.25}\n-      },\n-      {\n-        'name': 'Yogurt Parfait',\n-        'ingredients': ['yogurt', 'berries', 'granola']\n-      },\n-      {\n-        'name': 'Fried Potatoes',\n-        'ingredients': ['potatoes', 'onion', 'coconut oil', 'avocado', 'cheese']\n-      }\n-    ],\n-    'lunch': [\n-      {\n-        'name': 'Veggie BLT Sandwich',\n-        'ingredients': ['bread', 'facon', 'avocado', 'lettuce', 'tomato', 'mayo']\n-      },\n-      {\n-        'name': 'Veggie Burrito',\n-        'ingredients': ['tortilla', 'rice', 'beans', 'cilantro', 'salsa', 'avocado', 'yellow squash', 'lettuce', 'sour cream', 'cheese']\n-      },\n-      {\n-        'name': 'Falafel Wrap',\n-        'ingredients': ['tortilla', 'hummus', 'falafel', 'tabboleh', 'onion', 'raddish']\n-      },\n-      {\n-        'name': 'Pasta Salad',\n-        'ingredients': ['spiral noodles', 'ranch', 'mayo', 'parsley', 'bell peppers', 'onion']\n-      }\n-    ],\n-    'dinner': [\n-      {\n-        'name': 'Sweet & Sour Tofu',\n-        'ingredients': ['tofu', 'pineapple', 'onion', 'bell peppers', 'soy sauce', 'ketchup', 'rice vinegar', 'corn starch', 'brown sugar', 'garlic', 'ginger']\n-      },\n-      {\n-        'name': 'Spaghetti',\n-        'ingredients': ['spaghetti noodles', 'marinara', 'olive oil', 'garlic', 'lettuce', 'cucumber', 'cherry tomatoes', 'ranch']\n-      },\n-      {\n-        'name': 'Self-Made TV Dinner >_<',\n-        'ingredients': ['soy chicken nugz', 'potatoes', 'butter', 'corn', 'soymilk', 'ketchup', 'baked beans', 'broccoli']\n-      }\n-    ]\n-  }\n-\n-};\n-if(!localStorage.mealObj) {\n-  localStorage.setItem('mealObj', JSON.stringify(mealsJSON));\n-}\n+// I want to make meals into instances of a class called meal, I also want to change the layout of a meal to have\n+// a name, ingredients with straightforward quantities, a sauce & topping & spices key with all the harder to measure out ingredients as the value.\n+// Finally, for the list I will need to loop through the ingreidents in every meal and add up the quantities to display them. Then I will need to do something\n+// similar for the topppings section.\n+\n+\n+\n+\n+\n+//pretend mealsJSON came from localcstorange instead\n+var mealList = new MealList();\n+\n+mealList.load();\n+\n+\n var breakfast = $('#saved-meals-breakfast');\n var lunch = $('#saved-meals-lunch');\n var dinner = $('#saved-meals-dinner');\n-var mealsParsed = JSON.parse(localStorage.mealObj).meals","path":"main.js","position":77,"original_position":77,"commit_id":"79e5589c520b05a7f1d82909756944032506398e","original_commit_id":"79e5589c520b05a7f1d82909756944032506398e","user":{"login":"yubodiwu","id":8646579,"avatar_url":"https://avatars.githubusercontent.com/u/8646579?v=3","gravatar_id":"","url":"https://api.github.com/users/yubodiwu","html_url":"https://github.com/yubodiwu","followers_url":"https://api.github.com/users/yubodiwu/followers","following_url":"https://api.github.com/users/yubodiwu/following{/other_user}","gists_url":"https://api.github.com/users/yubodiwu/gists{/gist_id}","starred_url":"https://api.github.com/users/yubodiwu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yubodiwu/subscriptions","organizations_url":"https://api.github.com/users/yubodiwu/orgs","repos_url":"https://api.github.com/users/yubodiwu/repos","events_url":"https://api.github.com/users/yubodiwu/events{/privacy}","received_events_url":"https://api.github.com/users/yubodiwu/received_events","type":"User","site_admin":false},"body":"can localStorage be used like this or does it need to be \"localStorage.getItem(...)\"?","created_at":"2016-10-06T16:14:02Z","updated_at":"2016-10-06T16:24:38Z","html_url":"https://github.com/elliehoward/Eatme/pull/7#discussion_r82225894","pull_request_url":"https://api.github.com/repos/elliehoward/Eatme/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/elliehoward/Eatme/pulls/comments/82225894"},"html":{"href":"https://github.com/elliehoward/Eatme/pull/7#discussion_r82225894"},"pull_request":{"href":"https://api.github.com/repos/elliehoward/Eatme/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/elliehoward/Eatme/pulls/7","id":88293350,"html_url":"https://github.com/elliehoward/Eatme/pull/7","diff_url":"https://github.com/elliehoward/Eatme/pull/7.diff","patch_url":"https://github.com/elliehoward/Eatme/pull/7.patch","issue_url":"https://api.github.com/repos/elliehoward/Eatme/issues/7","number":7,"state":"open","locked":false,"title":"refactored into object oriented","user":{"login":"elliehoward","id":19560763,"avatar_url":"https://avatars.githubusercontent.com/u/19560763?v=3","gravatar_id":"","url":"https://api.github.com/users/elliehoward","html_url":"https://github.com/elliehoward","followers_url":"https://api.github.com/users/elliehoward/followers","following_url":"https://api.github.com/users/elliehoward/following{/other_user}","gists_url":"https://api.github.com/users/elliehoward/gists{/gist_id}","starred_url":"https://api.github.com/users/elliehoward/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elliehoward/subscriptions","organizations_url":"https://api.github.com/users/elliehoward/orgs","repos_url":"https://api.github.com/users/elliehoward/repos","events_url":"https://api.github.com/users/elliehoward/events{/privacy}","received_events_url":"https://api.github.com/users/elliehoward/received_events","type":"User","site_admin":false},"body":"Put some code into separate files.","created_at":"2016-10-06T16:09:47Z","updated_at":"2016-10-06T16:24:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"571c6af1861f7ac435bf7e9a3418b7aaebc6357d","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/elliehoward/Eatme/pulls/7/commits","review_comments_url":"https://api.github.com/repos/elliehoward/Eatme/pulls/7/comments","review_comment_url":"https://api.github.com/repos/elliehoward/Eatme/pulls/comments{/number}","comments_url":"https://api.github.com/repos/elliehoward/Eatme/issues/7/comments","statuses_url":"https://api.github.com/repos/elliehoward/Eatme/statuses/79e5589c520b05a7f1d82909756944032506398e","head":{"label":"elliehoward:developer","ref":"developer","sha":"79e5589c520b05a7f1d82909756944032506398e","user":{"login":"elliehoward","id":19560763,"avatar_url":"https://avatars.githubusercontent.com/u/19560763?v=3","gravatar_id":"","url":"https://api.github.com/users/elliehoward","html_url":"https://github.com/elliehoward","followers_url":"https://api.github.com/users/elliehoward/followers","following_url":"https://api.github.com/users/elliehoward/following{/other_user}","gists_url":"https://api.github.com/users/elliehoward/gists{/gist_id}","starred_url":"https://api.github.com/users/elliehoward/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elliehoward/subscriptions","organizations_url":"https://api.github.com/users/elliehoward/orgs","repos_url":"https://api.github.com/users/elliehoward/repos","events_url":"https://api.github.com/users/elliehoward/events{/privacy}","received_events_url":"https://api.github.com/users/elliehoward/received_events","type":"User","site_admin":false},"repo":{"id":69893736,"name":"Eatme","full_name":"elliehoward/Eatme","owner":{"login":"elliehoward","id":19560763,"avatar_url":"https://avatars.githubusercontent.com/u/19560763?v=3","gravatar_id":"","url":"https://api.github.com/users/elliehoward","html_url":"https://github.com/elliehoward","followers_url":"https://api.github.com/users/elliehoward/followers","following_url":"https://api.github.com/users/elliehoward/following{/other_user}","gists_url":"https://api.github.com/users/elliehoward/gists{/gist_id}","starred_url":"https://api.github.com/users/elliehoward/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elliehoward/subscriptions","organizations_url":"https://api.github.com/users/elliehoward/orgs","repos_url":"https://api.github.com/users/elliehoward/repos","events_url":"https://api.github.com/users/elliehoward/events{/privacy}","received_events_url":"https://api.github.com/users/elliehoward/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/elliehoward/Eatme","description":"Meal Planner application","fork":false,"url":"https://api.github.com/repos/elliehoward/Eatme","forks_url":"https://api.github.com/repos/elliehoward/Eatme/forks","keys_url":"https://api.github.com/repos/elliehoward/Eatme/keys{/key_id}","collaborators_url":"https://api.github.com/repos/elliehoward/Eatme/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/elliehoward/Eatme/teams","hooks_url":"https://api.github.com/repos/elliehoward/Eatme/hooks","issue_events_url":"https://api.github.com/repos/elliehoward/Eatme/issues/events{/number}","events_url":"https://api.github.com/repos/elliehoward/Eatme/events","assignees_url":"https://api.github.com/repos/elliehoward/Eatme/assignees{/user}","branches_url":"https://api.github.com/repos/elliehoward/Eatme/branches{/branch}","tags_url":"https://api.github.com/repos/elliehoward/Eatme/tags","blobs_url":"https://api.github.com/repos/elliehoward/Eatme/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/elliehoward/Eatme/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/elliehoward/Eatme/git/refs{/sha}","trees_url":"https://api.github.com/repos/elliehoward/Eatme/git/trees{/sha}","statuses_url":"https://api.github.com/repos/elliehoward/Eatme/statuses/{sha}","languages_url":"https://api.github.com/repos/elliehoward/Eatme/languages","stargazers_url":"https://api.github.com/repos/elliehoward/Eatme/stargazers","contributors_url":"https://api.github.com/repos/elliehoward/Eatme/contributors","subscribers_url":"https://api.github.com/repos/elliehoward/Eatme/subscribers","subscription_url":"https://api.github.com/repos/elliehoward/Eatme/subscription","commits_url":"https://api.github.com/repos/elliehoward/Eatme/commits{/sha}","git_commits_url":"https://api.github.com/repos/elliehoward/Eatme/git/commits{/sha}","comments_url":"https://api.github.com/repos/elliehoward/Eatme/comments{/number}","issue_comment_url":"https://api.github.com/repos/elliehoward/Eatme/issues/comments{/number}","contents_url":"https://api.github.com/repos/elliehoward/Eatme/contents/{+path}","compare_url":"https://api.github.com/repos/elliehoward/Eatme/compare/{base}...{head}","merges_url":"https://api.github.com/repos/elliehoward/Eatme/merges","archive_url":"https://api.github.com/repos/elliehoward/Eatme/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/elliehoward/Eatme/downloads","issues_url":"https://api.github.com/repos/elliehoward/Eatme/issues{/number}","pulls_url":"https://api.github.com/repos/elliehoward/Eatme/pulls{/number}","milestones_url":"https://api.github.com/repos/elliehoward/Eatme/milestones{/number}","notifications_url":"https://api.github.com/repos/elliehoward/Eatme/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/elliehoward/Eatme/labels{/name}","releases_url":"https://api.github.com/repos/elliehoward/Eatme/releases{/id}","deployments_url":"https://api.github.com/repos/elliehoward/Eatme/deployments","created_at":"2016-10-03T17:28:49Z","updated_at":"2016-10-03T17:35:42Z","pushed_at":"2016-10-06T16:09:47Z","git_url":"git://github.com/elliehoward/Eatme.git","ssh_url":"git@github.com:elliehoward/Eatme.git","clone_url":"https://github.com/elliehoward/Eatme.git","svn_url":"https://github.com/elliehoward/Eatme","homepage":null,"size":12,"stargazers_count":0,"watchers_count":0,"language":"HTML","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":"master"}},"base":{"label":"elliehoward:master","ref":"master","sha":"9a8d8c2215fe9fc98e17d5f97b12272ce1d51665","user":{"login":"elliehoward","id":19560763,"avatar_url":"https://avatars.githubusercontent.com/u/19560763?v=3","gravatar_id":"","url":"https://api.github.com/users/elliehoward","html_url":"https://github.com/elliehoward","followers_url":"https://api.github.com/users/elliehoward/followers","following_url":"https://api.github.com/users/elliehoward/following{/other_user}","gists_url":"https://api.github.com/users/elliehoward/gists{/gist_id}","starred_url":"https://api.github.com/users/elliehoward/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elliehoward/subscriptions","organizations_url":"https://api.github.com/users/elliehoward/orgs","repos_url":"https://api.github.com/users/elliehoward/repos","events_url":"https://api.github.com/users/elliehoward/events{/privacy}","received_events_url":"https://api.github.com/users/elliehoward/received_events","type":"User","site_admin":false},"repo":{"id":69893736,"name":"Eatme","full_name":"elliehoward/Eatme","owner":{"login":"elliehoward","id":19560763,"avatar_url":"https://avatars.githubusercontent.com/u/19560763?v=3","gravatar_id":"","url":"https://api.github.com/users/elliehoward","html_url":"https://github.com/elliehoward","followers_url":"https://api.github.com/users/elliehoward/followers","following_url":"https://api.github.com/users/elliehoward/following{/other_user}","gists_url":"https://api.github.com/users/elliehoward/gists{/gist_id}","starred_url":"https://api.github.com/users/elliehoward/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elliehoward/subscriptions","organizations_url":"https://api.github.com/users/elliehoward/orgs","repos_url":"https://api.github.com/users/elliehoward/repos","events_url":"https://api.github.com/users/elliehoward/events{/privacy}","received_events_url":"https://api.github.com/users/elliehoward/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/elliehoward/Eatme","description":"Meal Planner application","fork":false,"url":"https://api.github.com/repos/elliehoward/Eatme","forks_url":"https://api.github.com/repos/elliehoward/Eatme/forks","keys_url":"https://api.github.com/repos/elliehoward/Eatme/keys{/key_id}","collaborators_url":"https://api.github.com/repos/elliehoward/Eatme/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/elliehoward/Eatme/teams","hooks_url":"https://api.github.com/repos/elliehoward/Eatme/hooks","issue_events_url":"https://api.github.com/repos/elliehoward/Eatme/issues/events{/number}","events_url":"https://api.github.com/repos/elliehoward/Eatme/events","assignees_url":"https://api.github.com/repos/elliehoward/Eatme/assignees{/user}","branches_url":"https://api.github.com/repos/elliehoward/Eatme/branches{/branch}","tags_url":"https://api.github.com/repos/elliehoward/Eatme/tags","blobs_url":"https://api.github.com/repos/elliehoward/Eatme/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/elliehoward/Eatme/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/elliehoward/Eatme/git/refs{/sha}","trees_url":"https://api.github.com/repos/elliehoward/Eatme/git/trees{/sha}","statuses_url":"https://api.github.com/repos/elliehoward/Eatme/statuses/{sha}","languages_url":"https://api.github.com/repos/elliehoward/Eatme/languages","stargazers_url":"https://api.github.com/repos/elliehoward/Eatme/stargazers","contributors_url":"https://api.github.com/repos/elliehoward/Eatme/contributors","subscribers_url":"https://api.github.com/repos/elliehoward/Eatme/subscribers","subscription_url":"https://api.github.com/repos/elliehoward/Eatme/subscription","commits_url":"https://api.github.com/repos/elliehoward/Eatme/commits{/sha}","git_commits_url":"https://api.github.com/repos/elliehoward/Eatme/git/commits{/sha}","comments_url":"https://api.github.com/repos/elliehoward/Eatme/comments{/number}","issue_comment_url":"https://api.github.com/repos/elliehoward/Eatme/issues/comments{/number}","contents_url":"https://api.github.com/repos/elliehoward/Eatme/contents/{+path}","compare_url":"https://api.github.com/repos/elliehoward/Eatme/compare/{base}...{head}","merges_url":"https://api.github.com/repos/elliehoward/Eatme/merges","archive_url":"https://api.github.com/repos/elliehoward/Eatme/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/elliehoward/Eatme/downloads","issues_url":"https://api.github.com/repos/elliehoward/Eatme/issues{/number}","pulls_url":"https://api.github.com/repos/elliehoward/Eatme/pulls{/number}","milestones_url":"https://api.github.com/repos/elliehoward/Eatme/milestones{/number}","notifications_url":"https://api.github.com/repos/elliehoward/Eatme/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/elliehoward/Eatme/labels{/name}","releases_url":"https://api.github.com/repos/elliehoward/Eatme/releases{/id}","deployments_url":"https://api.github.com/repos/elliehoward/Eatme/deployments","created_at":"2016-10-03T17:28:49Z","updated_at":"2016-10-03T17:35:42Z","pushed_at":"2016-10-06T16:09:47Z","git_url":"git://github.com/elliehoward/Eatme.git","ssh_url":"git@github.com:elliehoward/Eatme.git","clone_url":"https://github.com/elliehoward/Eatme.git","svn_url":"https://github.com/elliehoward/Eatme","homepage":null,"size":12,"stargazers_count":0,"watchers_count":0,"language":"HTML","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":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/elliehoward/Eatme/pulls/7"},"html":{"href":"https://github.com/elliehoward/Eatme/pull/7"},"issue":{"href":"https://api.github.com/repos/elliehoward/Eatme/issues/7"},"comments":{"href":"https://api.github.com/repos/elliehoward/Eatme/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/elliehoward/Eatme/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/elliehoward/Eatme/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/elliehoward/Eatme/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/elliehoward/Eatme/statuses/79e5589c520b05a7f1d82909756944032506398e"}}}}
{"actor":{"display_login":"yubodiwu"}}