{"action":"created","comment":{"url":"https://api.github.com/repos/ga-wdi-exercises/checkout/pulls/comments/57316073","id":57316073,"diff_hunk":"@@ -3,36 +3,49 @@ app.shoppingCart = {\n   initialize: function(){\n     console.log(\"Initializing shoppingCart \");\n     // start with an empty Array of items\n-    this.items = {};\n+    this.items = [];\n   },\n \n-  add_item: function(name, price){\n-    this.items.push([ name: name, cost: cost, weight: weight, size: size ]);\n+  addItem: function(name, cost, weight, size, itemType){\n+    this.items.push({ name: name, cost: cost, weight: weight, size: size, itemType: itemType});\n   },\n \n+\n   calculateShipping: function(item){\n     var shipping = 0;\n-    var weight = item.weight || 5;\n-    if(weight < 50){\n+    var weight = item.weight;\n+    if(weight <= 50 && weight >=5){\n       shipping += 5;\n-    } else {\n-      shipping += 10\n+    } else if (weight > 50) {\n+      shipping += 10;","path":"scripts/shopping_cart.js","position":25,"original_position":25,"commit_id":"7cd12bb9208b814c9cdad0aa03dc600bfdd38edc","original_commit_id":"7cd12bb9208b814c9cdad0aa03dc600bfdd38edc","user":{"login":"adambray","id":75565,"avatar_url":"https://avatars.githubusercontent.com/u/75565?v=3","gravatar_id":"","url":"https://api.github.com/users/adambray","html_url":"https://github.com/adambray","followers_url":"https://api.github.com/users/adambray/followers","following_url":"https://api.github.com/users/adambray/following{/other_user}","gists_url":"https://api.github.com/users/adambray/gists{/gist_id}","starred_url":"https://api.github.com/users/adambray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adambray/subscriptions","organizations_url":"https://api.github.com/users/adambray/orgs","repos_url":"https://api.github.com/users/adambray/repos","events_url":"https://api.github.com/users/adambray/events{/privacy}","received_events_url":"https://api.github.com/users/adambray/received_events","type":"User","site_admin":false},"body":":+1: ","created_at":"2016-03-24T13:33:14Z","updated_at":"2016-03-24T13:33:14Z","html_url":"https://github.com/ga-wdi-exercises/checkout/pull/4#discussion_r57316073","pull_request_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/ga-wdi-exercises/checkout/pulls/comments/57316073"},"html":{"href":"https://github.com/ga-wdi-exercises/checkout/pull/4#discussion_r57316073"},"pull_request":{"href":"https://api.github.com/repos/ga-wdi-exercises/checkout/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/ga-wdi-exercises/checkout/pulls/4","id":63824549,"html_url":"https://github.com/ga-wdi-exercises/checkout/pull/4","diff_url":"https://github.com/ga-wdi-exercises/checkout/pull/4.diff","patch_url":"https://github.com/ga-wdi-exercises/checkout/pull/4.patch","issue_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/issues/4","number":4,"state":"open","locked":false,"title":"James Reichard's Solution","user":{"login":"superbuggy","id":17716232,"avatar_url":"https://avatars.githubusercontent.com/u/17716232?v=3","gravatar_id":"","url":"https://api.github.com/users/superbuggy","html_url":"https://github.com/superbuggy","followers_url":"https://api.github.com/users/superbuggy/followers","following_url":"https://api.github.com/users/superbuggy/following{/other_user}","gists_url":"https://api.github.com/users/superbuggy/gists{/gist_id}","starred_url":"https://api.github.com/users/superbuggy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/superbuggy/subscriptions","organizations_url":"https://api.github.com/users/superbuggy/orgs","repos_url":"https://api.github.com/users/superbuggy/repos","events_url":"https://api.github.com/users/superbuggy/events{/privacy}","received_events_url":"https://api.github.com/users/superbuggy/received_events","type":"User","site_admin":false},"body":"comfort: 3 (pretty sleep deprived, had to peek at the solution a couple times to get myself unmired :/ )\r\ncompleteness: 4.5 (didnt do second bonus)","created_at":"2016-03-23T02:54:35Z","updated_at":"2016-03-24T13:33:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2443ef1c023e61b6850440abcdd3d5d5bf5c8786","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/pulls/4/commits","review_comments_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/pulls/4/comments","review_comment_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/issues/4/comments","statuses_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/statuses/7cd12bb9208b814c9cdad0aa03dc600bfdd38edc","head":{"label":"superbuggy:James_Reichard_Solution","ref":"James_Reichard_Solution","sha":"7cd12bb9208b814c9cdad0aa03dc600bfdd38edc","user":{"login":"superbuggy","id":17716232,"avatar_url":"https://avatars.githubusercontent.com/u/17716232?v=3","gravatar_id":"","url":"https://api.github.com/users/superbuggy","html_url":"https://github.com/superbuggy","followers_url":"https://api.github.com/users/superbuggy/followers","following_url":"https://api.github.com/users/superbuggy/following{/other_user}","gists_url":"https://api.github.com/users/superbuggy/gists{/gist_id}","starred_url":"https://api.github.com/users/superbuggy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/superbuggy/subscriptions","organizations_url":"https://api.github.com/users/superbuggy/orgs","repos_url":"https://api.github.com/users/superbuggy/repos","events_url":"https://api.github.com/users/superbuggy/events{/privacy}","received_events_url":"https://api.github.com/users/superbuggy/received_events","type":"User","site_admin":false},"repo":{"id":54519032,"name":"checkout","full_name":"superbuggy/checkout","owner":{"login":"superbuggy","id":17716232,"avatar_url":"https://avatars.githubusercontent.com/u/17716232?v=3","gravatar_id":"","url":"https://api.github.com/users/superbuggy","html_url":"https://github.com/superbuggy","followers_url":"https://api.github.com/users/superbuggy/followers","following_url":"https://api.github.com/users/superbuggy/following{/other_user}","gists_url":"https://api.github.com/users/superbuggy/gists{/gist_id}","starred_url":"https://api.github.com/users/superbuggy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/superbuggy/subscriptions","organizations_url":"https://api.github.com/users/superbuggy/orgs","repos_url":"https://api.github.com/users/superbuggy/repos","events_url":"https://api.github.com/users/superbuggy/events{/privacy}","received_events_url":"https://api.github.com/users/superbuggy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/superbuggy/checkout","description":"Debugging the ShoppingCart [javascript, debug]","fork":true,"url":"https://api.github.com/repos/superbuggy/checkout","forks_url":"https://api.github.com/repos/superbuggy/checkout/forks","keys_url":"https://api.github.com/repos/superbuggy/checkout/keys{/key_id}","collaborators_url":"https://api.github.com/repos/superbuggy/checkout/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/superbuggy/checkout/teams","hooks_url":"https://api.github.com/repos/superbuggy/checkout/hooks","issue_events_url":"https://api.github.com/repos/superbuggy/checkout/issues/events{/number}","events_url":"https://api.github.com/repos/superbuggy/checkout/events","assignees_url":"https://api.github.com/repos/superbuggy/checkout/assignees{/user}","branches_url":"https://api.github.com/repos/superbuggy/checkout/branches{/branch}","tags_url":"https://api.github.com/repos/superbuggy/checkout/tags","blobs_url":"https://api.github.com/repos/superbuggy/checkout/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/superbuggy/checkout/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/superbuggy/checkout/git/refs{/sha}","trees_url":"https://api.github.com/repos/superbuggy/checkout/git/trees{/sha}","statuses_url":"https://api.github.com/repos/superbuggy/checkout/statuses/{sha}","languages_url":"https://api.github.com/repos/superbuggy/checkout/languages","stargazers_url":"https://api.github.com/repos/superbuggy/checkout/stargazers","contributors_url":"https://api.github.com/repos/superbuggy/checkout/contributors","subscribers_url":"https://api.github.com/repos/superbuggy/checkout/subscribers","subscription_url":"https://api.github.com/repos/superbuggy/checkout/subscription","commits_url":"https://api.github.com/repos/superbuggy/checkout/commits{/sha}","git_commits_url":"https://api.github.com/repos/superbuggy/checkout/git/commits{/sha}","comments_url":"https://api.github.com/repos/superbuggy/checkout/comments{/number}","issue_comment_url":"https://api.github.com/repos/superbuggy/checkout/issues/comments{/number}","contents_url":"https://api.github.com/repos/superbuggy/checkout/contents/{+path}","compare_url":"https://api.github.com/repos/superbuggy/checkout/compare/{base}...{head}","merges_url":"https://api.github.com/repos/superbuggy/checkout/merges","archive_url":"https://api.github.com/repos/superbuggy/checkout/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/superbuggy/checkout/downloads","issues_url":"https://api.github.com/repos/superbuggy/checkout/issues{/number}","pulls_url":"https://api.github.com/repos/superbuggy/checkout/pulls{/number}","milestones_url":"https://api.github.com/repos/superbuggy/checkout/milestones{/number}","notifications_url":"https://api.github.com/repos/superbuggy/checkout/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/superbuggy/checkout/labels{/name}","releases_url":"https://api.github.com/repos/superbuggy/checkout/releases{/id}","deployments_url":"https://api.github.com/repos/superbuggy/checkout/deployments","created_at":"2016-03-23T00:44:25Z","updated_at":"2016-03-23T00:44:26Z","pushed_at":"2016-03-23T02:52:35Z","git_url":"git://github.com/superbuggy/checkout.git","ssh_url":"git@github.com:superbuggy/checkout.git","clone_url":"https://github.com/superbuggy/checkout.git","svn_url":"https://github.com/superbuggy/checkout","homepage":null,"size":7,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"ga-wdi-exercises:master","ref":"master","sha":"8fae80267de4fb70e79648b23495867a752491f6","user":{"login":"ga-wdi-exercises","id":16946328,"avatar_url":"https://avatars.githubusercontent.com/u/16946328?v=3","gravatar_id":"","url":"https://api.github.com/users/ga-wdi-exercises","html_url":"https://github.com/ga-wdi-exercises","followers_url":"https://api.github.com/users/ga-wdi-exercises/followers","following_url":"https://api.github.com/users/ga-wdi-exercises/following{/other_user}","gists_url":"https://api.github.com/users/ga-wdi-exercises/gists{/gist_id}","starred_url":"https://api.github.com/users/ga-wdi-exercises/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ga-wdi-exercises/subscriptions","organizations_url":"https://api.github.com/users/ga-wdi-exercises/orgs","repos_url":"https://api.github.com/users/ga-wdi-exercises/repos","events_url":"https://api.github.com/users/ga-wdi-exercises/events{/privacy}","received_events_url":"https://api.github.com/users/ga-wdi-exercises/received_events","type":"Organization","site_admin":false},"repo":{"id":44288353,"name":"checkout","full_name":"ga-wdi-exercises/checkout","owner":{"login":"ga-wdi-exercises","id":16946328,"avatar_url":"https://avatars.githubusercontent.com/u/16946328?v=3","gravatar_id":"","url":"https://api.github.com/users/ga-wdi-exercises","html_url":"https://github.com/ga-wdi-exercises","followers_url":"https://api.github.com/users/ga-wdi-exercises/followers","following_url":"https://api.github.com/users/ga-wdi-exercises/following{/other_user}","gists_url":"https://api.github.com/users/ga-wdi-exercises/gists{/gist_id}","starred_url":"https://api.github.com/users/ga-wdi-exercises/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ga-wdi-exercises/subscriptions","organizations_url":"https://api.github.com/users/ga-wdi-exercises/orgs","repos_url":"https://api.github.com/users/ga-wdi-exercises/repos","events_url":"https://api.github.com/users/ga-wdi-exercises/events{/privacy}","received_events_url":"https://api.github.com/users/ga-wdi-exercises/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ga-wdi-exercises/checkout","description":"Debugging the ShoppingCart [javascript, debug]","fork":false,"url":"https://api.github.com/repos/ga-wdi-exercises/checkout","forks_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/forks","keys_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/teams","hooks_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/hooks","issue_events_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/issues/events{/number}","events_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/events","assignees_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/assignees{/user}","branches_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/branches{/branch}","tags_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/tags","blobs_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/git/refs{/sha}","trees_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/statuses/{sha}","languages_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/languages","stargazers_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/stargazers","contributors_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/contributors","subscribers_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/subscribers","subscription_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/subscription","commits_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/commits{/sha}","git_commits_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/git/commits{/sha}","comments_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/comments{/number}","issue_comment_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/issues/comments{/number}","contents_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/contents/{+path}","compare_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/merges","archive_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/downloads","issues_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/issues{/number}","pulls_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/pulls{/number}","milestones_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/milestones{/number}","notifications_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/labels{/name}","releases_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/releases{/id}","deployments_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/deployments","created_at":"2015-10-15T02:16:04Z","updated_at":"2016-02-02T23:46:28Z","pushed_at":"2016-03-24T12:52:11Z","git_url":"git://github.com/ga-wdi-exercises/checkout.git","ssh_url":"git@github.com:ga-wdi-exercises/checkout.git","clone_url":"https://github.com/ga-wdi-exercises/checkout.git","svn_url":"https://github.com/ga-wdi-exercises/checkout","homepage":null,"size":5,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":5,"forks":15,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ga-wdi-exercises/checkout/pulls/4"},"html":{"href":"https://github.com/ga-wdi-exercises/checkout/pull/4"},"issue":{"href":"https://api.github.com/repos/ga-wdi-exercises/checkout/issues/4"},"comments":{"href":"https://api.github.com/repos/ga-wdi-exercises/checkout/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/ga-wdi-exercises/checkout/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/ga-wdi-exercises/checkout/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ga-wdi-exercises/checkout/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/ga-wdi-exercises/checkout/statuses/7cd12bb9208b814c9cdad0aa03dc600bfdd38edc"}}}}