{"action":"created","comment":{"url":"https://api.github.com/repos/InterruptedLobster/findAR/pulls/comments/56930045","id":56930045,"diff_hunk":"@@ -17,19 +17,9 @@ export default function getLocationToSave(location) {\n               coords.longitude = position.coords.longitude;\n               coords.latitude = position.coords.latitude;\n               coords.title = 'My Current Location';\n-              //this adds pin to db\n-              userData.push(coords);\n-              //this will add id prop w unique id generated by db to each added pin\n-\n-              userData.on(\"value\", function(snap) {\n-                //TODO: find more efficient way to find most recently added pin\n-                snap.forEach((child) => {\n-                  let key = child.key();\n-                  currentId = key;\n-                });\n-                dispatch(dropNewPin(coords, currentId));\n-              });\n-\n+              //this assigns pushedObj to added pin object while adding to db","path":"app/actions/action_dropNewPin.js","position":32,"original_position":17,"commit_id":"8cd2fd4c5fa3687d23261c00370b497120f8c799","original_commit_id":"ec7a78bbd26873665cc844b81f6ae4f85efe51d6","user":{"login":"tiffeli","id":14192218,"avatar_url":"https://avatars.githubusercontent.com/u/14192218?v=3","gravatar_id":"","url":"https://api.github.com/users/tiffeli","html_url":"https://github.com/tiffeli","followers_url":"https://api.github.com/users/tiffeli/followers","following_url":"https://api.github.com/users/tiffeli/following{/other_user}","gists_url":"https://api.github.com/users/tiffeli/gists{/gist_id}","starred_url":"https://api.github.com/users/tiffeli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tiffeli/subscriptions","organizations_url":"https://api.github.com/users/tiffeli/orgs","repos_url":"https://api.github.com/users/tiffeli/repos","events_url":"https://api.github.com/users/tiffeli/events{/privacy}","received_events_url":"https://api.github.com/users/tiffeli/received_events","type":"User","site_admin":false},"body":"@bignell Thanks! I took it out and implemented es6 syntax ","created_at":"2016-03-22T02:47:14Z","updated_at":"2016-03-22T02:47:14Z","html_url":"https://github.com/InterruptedLobster/findAR/pull/63#discussion_r56930045","pull_request_url":"https://api.github.com/repos/InterruptedLobster/findAR/pulls/63","_links":{"self":{"href":"https://api.github.com/repos/InterruptedLobster/findAR/pulls/comments/56930045"},"html":{"href":"https://github.com/InterruptedLobster/findAR/pull/63#discussion_r56930045"},"pull_request":{"href":"https://api.github.com/repos/InterruptedLobster/findAR/pulls/63"}}},"pull_request":{"url":"https://api.github.com/repos/InterruptedLobster/findAR/pulls/63","id":63660608,"html_url":"https://github.com/InterruptedLobster/findAR/pull/63","diff_url":"https://github.com/InterruptedLobster/findAR/pull/63.diff","patch_url":"https://github.com/InterruptedLobster/findAR/pull/63.patch","issue_url":"https://api.github.com/repos/InterruptedLobster/findAR/issues/63","number":63,"state":"open","locked":false,"title":"Optimize","user":{"login":"tiffeli","id":14192218,"avatar_url":"https://avatars.githubusercontent.com/u/14192218?v=3","gravatar_id":"","url":"https://api.github.com/users/tiffeli","html_url":"https://github.com/tiffeli","followers_url":"https://api.github.com/users/tiffeli/followers","following_url":"https://api.github.com/users/tiffeli/following{/other_user}","gists_url":"https://api.github.com/users/tiffeli/gists{/gist_id}","starred_url":"https://api.github.com/users/tiffeli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tiffeli/subscriptions","organizations_url":"https://api.github.com/users/tiffeli/orgs","repos_url":"https://api.github.com/users/tiffeli/repos","events_url":"https://api.github.com/users/tiffeli/events{/privacy}","received_events_url":"https://api.github.com/users/tiffeli/received_events","type":"User","site_admin":false},"body":"-refactored action_dropNewPin to grab last item without looping.\r\n-refactored action_updatePins to get all pins in firebase without looping.\r\n-moved call to getPins into viewContainer.\r\nresolves #53","created_at":"2016-03-22T02:10:02Z","updated_at":"2016-03-22T02:47:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4d58f251170d93ed008abdab934620d5ebf27cc1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/InterruptedLobster/findAR/pulls/63/commits","review_comments_url":"https://api.github.com/repos/InterruptedLobster/findAR/pulls/63/comments","review_comment_url":"https://api.github.com/repos/InterruptedLobster/findAR/pulls/comments{/number}","comments_url":"https://api.github.com/repos/InterruptedLobster/findAR/issues/63/comments","statuses_url":"https://api.github.com/repos/InterruptedLobster/findAR/statuses/8cd2fd4c5fa3687d23261c00370b497120f8c799","head":{"label":"tiffeli:optimize","ref":"optimize","sha":"8cd2fd4c5fa3687d23261c00370b497120f8c799","user":{"login":"tiffeli","id":14192218,"avatar_url":"https://avatars.githubusercontent.com/u/14192218?v=3","gravatar_id":"","url":"https://api.github.com/users/tiffeli","html_url":"https://github.com/tiffeli","followers_url":"https://api.github.com/users/tiffeli/followers","following_url":"https://api.github.com/users/tiffeli/following{/other_user}","gists_url":"https://api.github.com/users/tiffeli/gists{/gist_id}","starred_url":"https://api.github.com/users/tiffeli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tiffeli/subscriptions","organizations_url":"https://api.github.com/users/tiffeli/orgs","repos_url":"https://api.github.com/users/tiffeli/repos","events_url":"https://api.github.com/users/tiffeli/events{/privacy}","received_events_url":"https://api.github.com/users/tiffeli/received_events","type":"User","site_admin":false},"repo":{"id":53893721,"name":"findAR","full_name":"tiffeli/findAR","owner":{"login":"tiffeli","id":14192218,"avatar_url":"https://avatars.githubusercontent.com/u/14192218?v=3","gravatar_id":"","url":"https://api.github.com/users/tiffeli","html_url":"https://github.com/tiffeli","followers_url":"https://api.github.com/users/tiffeli/followers","following_url":"https://api.github.com/users/tiffeli/following{/other_user}","gists_url":"https://api.github.com/users/tiffeli/gists{/gist_id}","starred_url":"https://api.github.com/users/tiffeli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tiffeli/subscriptions","organizations_url":"https://api.github.com/users/tiffeli/orgs","repos_url":"https://api.github.com/users/tiffeli/repos","events_url":"https://api.github.com/users/tiffeli/events{/privacy}","received_events_url":"https://api.github.com/users/tiffeli/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tiffeli/findAR","description":"An augmented reality application to find points in space.","fork":true,"url":"https://api.github.com/repos/tiffeli/findAR","forks_url":"https://api.github.com/repos/tiffeli/findAR/forks","keys_url":"https://api.github.com/repos/tiffeli/findAR/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tiffeli/findAR/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tiffeli/findAR/teams","hooks_url":"https://api.github.com/repos/tiffeli/findAR/hooks","issue_events_url":"https://api.github.com/repos/tiffeli/findAR/issues/events{/number}","events_url":"https://api.github.com/repos/tiffeli/findAR/events","assignees_url":"https://api.github.com/repos/tiffeli/findAR/assignees{/user}","branches_url":"https://api.github.com/repos/tiffeli/findAR/branches{/branch}","tags_url":"https://api.github.com/repos/tiffeli/findAR/tags","blobs_url":"https://api.github.com/repos/tiffeli/findAR/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tiffeli/findAR/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tiffeli/findAR/git/refs{/sha}","trees_url":"https://api.github.com/repos/tiffeli/findAR/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tiffeli/findAR/statuses/{sha}","languages_url":"https://api.github.com/repos/tiffeli/findAR/languages","stargazers_url":"https://api.github.com/repos/tiffeli/findAR/stargazers","contributors_url":"https://api.github.com/repos/tiffeli/findAR/contributors","subscribers_url":"https://api.github.com/repos/tiffeli/findAR/subscribers","subscription_url":"https://api.github.com/repos/tiffeli/findAR/subscription","commits_url":"https://api.github.com/repos/tiffeli/findAR/commits{/sha}","git_commits_url":"https://api.github.com/repos/tiffeli/findAR/git/commits{/sha}","comments_url":"https://api.github.com/repos/tiffeli/findAR/comments{/number}","issue_comment_url":"https://api.github.com/repos/tiffeli/findAR/issues/comments{/number}","contents_url":"https://api.github.com/repos/tiffeli/findAR/contents/{+path}","compare_url":"https://api.github.com/repos/tiffeli/findAR/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tiffeli/findAR/merges","archive_url":"https://api.github.com/repos/tiffeli/findAR/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tiffeli/findAR/downloads","issues_url":"https://api.github.com/repos/tiffeli/findAR/issues{/number}","pulls_url":"https://api.github.com/repos/tiffeli/findAR/pulls{/number}","milestones_url":"https://api.github.com/repos/tiffeli/findAR/milestones{/number}","notifications_url":"https://api.github.com/repos/tiffeli/findAR/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tiffeli/findAR/labels{/name}","releases_url":"https://api.github.com/repos/tiffeli/findAR/releases{/id}","deployments_url":"https://api.github.com/repos/tiffeli/findAR/deployments","created_at":"2016-03-14T21:37:45Z","updated_at":"2016-03-10T00:33:59Z","pushed_at":"2016-03-22T02:46:32Z","git_url":"git://github.com/tiffeli/findAR.git","ssh_url":"git@github.com:tiffeli/findAR.git","clone_url":"https://github.com/tiffeli/findAR.git","svn_url":"https://github.com/tiffeli/findAR","homepage":null,"size":200,"stargazers_count":0,"watchers_count":0,"language":null,"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":"InterruptedLobster:master","ref":"master","sha":"21f75319aff2bba4dffee47fb72adcb3077db74e","user":{"login":"InterruptedLobster","id":17732633,"avatar_url":"https://avatars.githubusercontent.com/u/17732633?v=3","gravatar_id":"","url":"https://api.github.com/users/InterruptedLobster","html_url":"https://github.com/InterruptedLobster","followers_url":"https://api.github.com/users/InterruptedLobster/followers","following_url":"https://api.github.com/users/InterruptedLobster/following{/other_user}","gists_url":"https://api.github.com/users/InterruptedLobster/gists{/gist_id}","starred_url":"https://api.github.com/users/InterruptedLobster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/InterruptedLobster/subscriptions","organizations_url":"https://api.github.com/users/InterruptedLobster/orgs","repos_url":"https://api.github.com/users/InterruptedLobster/repos","events_url":"https://api.github.com/users/InterruptedLobster/events{/privacy}","received_events_url":"https://api.github.com/users/InterruptedLobster/received_events","type":"Organization","site_admin":false},"repo":{"id":53542374,"name":"findAR","full_name":"InterruptedLobster/findAR","owner":{"login":"InterruptedLobster","id":17732633,"avatar_url":"https://avatars.githubusercontent.com/u/17732633?v=3","gravatar_id":"","url":"https://api.github.com/users/InterruptedLobster","html_url":"https://github.com/InterruptedLobster","followers_url":"https://api.github.com/users/InterruptedLobster/followers","following_url":"https://api.github.com/users/InterruptedLobster/following{/other_user}","gists_url":"https://api.github.com/users/InterruptedLobster/gists{/gist_id}","starred_url":"https://api.github.com/users/InterruptedLobster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/InterruptedLobster/subscriptions","organizations_url":"https://api.github.com/users/InterruptedLobster/orgs","repos_url":"https://api.github.com/users/InterruptedLobster/repos","events_url":"https://api.github.com/users/InterruptedLobster/events{/privacy}","received_events_url":"https://api.github.com/users/InterruptedLobster/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/InterruptedLobster/findAR","description":"An augmented reality application to find points in space.","fork":false,"url":"https://api.github.com/repos/InterruptedLobster/findAR","forks_url":"https://api.github.com/repos/InterruptedLobster/findAR/forks","keys_url":"https://api.github.com/repos/InterruptedLobster/findAR/keys{/key_id}","collaborators_url":"https://api.github.com/repos/InterruptedLobster/findAR/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/InterruptedLobster/findAR/teams","hooks_url":"https://api.github.com/repos/InterruptedLobster/findAR/hooks","issue_events_url":"https://api.github.com/repos/InterruptedLobster/findAR/issues/events{/number}","events_url":"https://api.github.com/repos/InterruptedLobster/findAR/events","assignees_url":"https://api.github.com/repos/InterruptedLobster/findAR/assignees{/user}","branches_url":"https://api.github.com/repos/InterruptedLobster/findAR/branches{/branch}","tags_url":"https://api.github.com/repos/InterruptedLobster/findAR/tags","blobs_url":"https://api.github.com/repos/InterruptedLobster/findAR/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/InterruptedLobster/findAR/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/InterruptedLobster/findAR/git/refs{/sha}","trees_url":"https://api.github.com/repos/InterruptedLobster/findAR/git/trees{/sha}","statuses_url":"https://api.github.com/repos/InterruptedLobster/findAR/statuses/{sha}","languages_url":"https://api.github.com/repos/InterruptedLobster/findAR/languages","stargazers_url":"https://api.github.com/repos/InterruptedLobster/findAR/stargazers","contributors_url":"https://api.github.com/repos/InterruptedLobster/findAR/contributors","subscribers_url":"https://api.github.com/repos/InterruptedLobster/findAR/subscribers","subscription_url":"https://api.github.com/repos/InterruptedLobster/findAR/subscription","commits_url":"https://api.github.com/repos/InterruptedLobster/findAR/commits{/sha}","git_commits_url":"https://api.github.com/repos/InterruptedLobster/findAR/git/commits{/sha}","comments_url":"https://api.github.com/repos/InterruptedLobster/findAR/comments{/number}","issue_comment_url":"https://api.github.com/repos/InterruptedLobster/findAR/issues/comments{/number}","contents_url":"https://api.github.com/repos/InterruptedLobster/findAR/contents/{+path}","compare_url":"https://api.github.com/repos/InterruptedLobster/findAR/compare/{base}...{head}","merges_url":"https://api.github.com/repos/InterruptedLobster/findAR/merges","archive_url":"https://api.github.com/repos/InterruptedLobster/findAR/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/InterruptedLobster/findAR/downloads","issues_url":"https://api.github.com/repos/InterruptedLobster/findAR/issues{/number}","pulls_url":"https://api.github.com/repos/InterruptedLobster/findAR/pulls{/number}","milestones_url":"https://api.github.com/repos/InterruptedLobster/findAR/milestones{/number}","notifications_url":"https://api.github.com/repos/InterruptedLobster/findAR/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/InterruptedLobster/findAR/labels{/name}","releases_url":"https://api.github.com/repos/InterruptedLobster/findAR/releases{/id}","deployments_url":"https://api.github.com/repos/InterruptedLobster/findAR/deployments","created_at":"2016-03-10T00:33:59Z","updated_at":"2016-03-15T22:43:26Z","pushed_at":"2016-03-22T02:46:32Z","git_url":"git://github.com/InterruptedLobster/findAR.git","ssh_url":"git@github.com:InterruptedLobster/findAR.git","clone_url":"https://github.com/InterruptedLobster/findAR.git","svn_url":"https://github.com/InterruptedLobster/findAR","homepage":null,"size":215,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":25,"forks":4,"open_issues":25,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/InterruptedLobster/findAR/pulls/63"},"html":{"href":"https://github.com/InterruptedLobster/findAR/pull/63"},"issue":{"href":"https://api.github.com/repos/InterruptedLobster/findAR/issues/63"},"comments":{"href":"https://api.github.com/repos/InterruptedLobster/findAR/issues/63/comments"},"review_comments":{"href":"https://api.github.com/repos/InterruptedLobster/findAR/pulls/63/comments"},"review_comment":{"href":"https://api.github.com/repos/InterruptedLobster/findAR/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/InterruptedLobster/findAR/pulls/63/commits"},"statuses":{"href":"https://api.github.com/repos/InterruptedLobster/findAR/statuses/8cd2fd4c5fa3687d23261c00370b497120f8c799"}}}}