{"action":"created","comment":{"url":"https://api.github.com/repos/akatz000/breakable_toy/pulls/comments/43975642","id":43975642,"diff_hunk":"@@ -0,0 +1,78 @@\n+var shpagleebleSpace = shpagleebleSpace || {};\n+\n+function otherMap() {\n+  var userId;\n+  shpagleebleSpace.map = new google.maps.Map(document.getElementById('map'), {\n+    center: {\n+      lat: 42.3601,\n+      lng: -71.0589\n+    },\n+    zoom: 16\n+  });\n+  userId = window.location.pathname.split('/');\n+  userId = userId[2];\n+  $.ajax({\n+      method: 'GET',\n+      url: '/markers',\n+      data: {\n+        user_id: userId\n+      },\n+      dataType: 'json',\n+    })\n+    .done(function(markers) {\n+      for (var i = 0; i < markers.length; i++) {\n+\n+        shpagleebleSpace.marker = new google.maps.Marker({\n+          position: {\n+            lat: parseFloat(markers[i].latitude),\n+            lng: parseFloat(markers[i].longitude),\n+          },\n+          title: markers[i].description,\n+          map: shpagleebleSpace.map,\n+          'id': markers[i].id\n+        });\n+        shpagleebleSpace.markerArray.push(shpagleebleSpace.marker);\n+      }\n+      shpagleebleSpace.addMarkerListeners(shpagleebleSpace.markerArray);\n+    });\n+  shpagleebleSpace.infoWindowOne = new google.maps.InfoWindow({});\n+}\n+\n+function initMap() {\n+  shpagleebleSpace.map = new google.maps.Map(document.getElementById('map'), {\n+    center: {\n+      lat: 42.3601,\n+      lng: -71.0589\n+    },\n+    zoom: 16\n+  });\n+  $.ajax({\n+      method: 'GET',\n+      url: '/markers',\n+      dataType: 'json'\n+    })\n+    .done(function(markers) {\n+      for (var i = 0; i < markers.length; i++) {\n+\n+        shpagleebleSpace.marker = new google.maps.Marker({","path":"app/assets/javascripts/mapInitializers.js","position":25,"original_position":57,"commit_id":"e2d9b74c40b38b4b98fa7e737251833a9c93e22b","original_commit_id":"08eccc3963e8c58b4617b7801ff4d7f29c38ba9d","user":{"login":"akatz000","id":12253843,"avatar_url":"https://avatars.githubusercontent.com/u/12253843?v=3","gravatar_id":"","url":"https://api.github.com/users/akatz000","html_url":"https://github.com/akatz000","followers_url":"https://api.github.com/users/akatz000/followers","following_url":"https://api.github.com/users/akatz000/following{/other_user}","gists_url":"https://api.github.com/users/akatz000/gists{/gist_id}","starred_url":"https://api.github.com/users/akatz000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akatz000/subscriptions","organizations_url":"https://api.github.com/users/akatz000/orgs","repos_url":"https://api.github.com/users/akatz000/repos","events_url":"https://api.github.com/users/akatz000/events{/privacy}","received_events_url":"https://api.github.com/users/akatz000/received_events","type":"User","site_admin":false},"body":"api","created_at":"2015-11-05T04:33:21Z","updated_at":"2015-11-05T04:33:21Z","html_url":"https://github.com/akatz000/breakable_toy/pull/23#discussion_r43975642","pull_request_url":"https://api.github.com/repos/akatz000/breakable_toy/pulls/23","_links":{"self":{"href":"https://api.github.com/repos/akatz000/breakable_toy/pulls/comments/43975642"},"html":{"href":"https://github.com/akatz000/breakable_toy/pull/23#discussion_r43975642"},"pull_request":{"href":"https://api.github.com/repos/akatz000/breakable_toy/pulls/23"}}},"pull_request":{"url":"https://api.github.com/repos/akatz000/breakable_toy/pulls/23","id":49778959,"html_url":"https://github.com/akatz000/breakable_toy/pull/23","diff_url":"https://github.com/akatz000/breakable_toy/pull/23.diff","patch_url":"https://github.com/akatz000/breakable_toy/pull/23.patch","issue_url":"https://api.github.com/repos/akatz000/breakable_toy/issues/23","number":23,"state":"open","locked":false,"title":"refactor javascripts further","user":{"login":"akatz000","id":12253843,"avatar_url":"https://avatars.githubusercontent.com/u/12253843?v=3","gravatar_id":"","url":"https://api.github.com/users/akatz000","html_url":"https://github.com/akatz000","followers_url":"https://api.github.com/users/akatz000/followers","following_url":"https://api.github.com/users/akatz000/following{/other_user}","gists_url":"https://api.github.com/users/akatz000/gists{/gist_id}","starred_url":"https://api.github.com/users/akatz000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akatz000/subscriptions","organizations_url":"https://api.github.com/users/akatz000/orgs","repos_url":"https://api.github.com/users/akatz000/repos","events_url":"https://api.github.com/users/akatz000/events{/privacy}","received_events_url":"https://api.github.com/users/akatz000/received_events","type":"User","site_admin":false},"body":"- Reorganize/break up large javascript files\r\n- Move more functions into dedicated namespace\r\n- Improve functionality for viewing friends map so that unecessary javascript is not running. Done by adding additional class to html body.","created_at":"2015-11-05T03:38:24Z","updated_at":"2015-11-05T04:33:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7caf27d24f8fc7741194e1f449881a45be113a4d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/akatz000/breakable_toy/pulls/23/commits","review_comments_url":"https://api.github.com/repos/akatz000/breakable_toy/pulls/23/comments","review_comment_url":"https://api.github.com/repos/akatz000/breakable_toy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/akatz000/breakable_toy/issues/23/comments","statuses_url":"https://api.github.com/repos/akatz000/breakable_toy/statuses/e2d9b74c40b38b4b98fa7e737251833a9c93e22b","head":{"label":"akatz000:refactor","ref":"refactor","sha":"e2d9b74c40b38b4b98fa7e737251833a9c93e22b","user":{"login":"akatz000","id":12253843,"avatar_url":"https://avatars.githubusercontent.com/u/12253843?v=3","gravatar_id":"","url":"https://api.github.com/users/akatz000","html_url":"https://github.com/akatz000","followers_url":"https://api.github.com/users/akatz000/followers","following_url":"https://api.github.com/users/akatz000/following{/other_user}","gists_url":"https://api.github.com/users/akatz000/gists{/gist_id}","starred_url":"https://api.github.com/users/akatz000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akatz000/subscriptions","organizations_url":"https://api.github.com/users/akatz000/orgs","repos_url":"https://api.github.com/users/akatz000/repos","events_url":"https://api.github.com/users/akatz000/events{/privacy}","received_events_url":"https://api.github.com/users/akatz000/received_events","type":"User","site_admin":false},"repo":{"id":43693421,"name":"breakable_toy","full_name":"akatz000/breakable_toy","owner":{"login":"akatz000","id":12253843,"avatar_url":"https://avatars.githubusercontent.com/u/12253843?v=3","gravatar_id":"","url":"https://api.github.com/users/akatz000","html_url":"https://github.com/akatz000","followers_url":"https://api.github.com/users/akatz000/followers","following_url":"https://api.github.com/users/akatz000/following{/other_user}","gists_url":"https://api.github.com/users/akatz000/gists{/gist_id}","starred_url":"https://api.github.com/users/akatz000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akatz000/subscriptions","organizations_url":"https://api.github.com/users/akatz000/orgs","repos_url":"https://api.github.com/users/akatz000/repos","events_url":"https://api.github.com/users/akatz000/events{/privacy}","received_events_url":"https://api.github.com/users/akatz000/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/akatz000/breakable_toy","description":"Shpagleeble","fork":false,"url":"https://api.github.com/repos/akatz000/breakable_toy","forks_url":"https://api.github.com/repos/akatz000/breakable_toy/forks","keys_url":"https://api.github.com/repos/akatz000/breakable_toy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/akatz000/breakable_toy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/akatz000/breakable_toy/teams","hooks_url":"https://api.github.com/repos/akatz000/breakable_toy/hooks","issue_events_url":"https://api.github.com/repos/akatz000/breakable_toy/issues/events{/number}","events_url":"https://api.github.com/repos/akatz000/breakable_toy/events","assignees_url":"https://api.github.com/repos/akatz000/breakable_toy/assignees{/user}","branches_url":"https://api.github.com/repos/akatz000/breakable_toy/branches{/branch}","tags_url":"https://api.github.com/repos/akatz000/breakable_toy/tags","blobs_url":"https://api.github.com/repos/akatz000/breakable_toy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/akatz000/breakable_toy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/akatz000/breakable_toy/git/refs{/sha}","trees_url":"https://api.github.com/repos/akatz000/breakable_toy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/akatz000/breakable_toy/statuses/{sha}","languages_url":"https://api.github.com/repos/akatz000/breakable_toy/languages","stargazers_url":"https://api.github.com/repos/akatz000/breakable_toy/stargazers","contributors_url":"https://api.github.com/repos/akatz000/breakable_toy/contributors","subscribers_url":"https://api.github.com/repos/akatz000/breakable_toy/subscribers","subscription_url":"https://api.github.com/repos/akatz000/breakable_toy/subscription","commits_url":"https://api.github.com/repos/akatz000/breakable_toy/commits{/sha}","git_commits_url":"https://api.github.com/repos/akatz000/breakable_toy/git/commits{/sha}","comments_url":"https://api.github.com/repos/akatz000/breakable_toy/comments{/number}","issue_comment_url":"https://api.github.com/repos/akatz000/breakable_toy/issues/comments{/number}","contents_url":"https://api.github.com/repos/akatz000/breakable_toy/contents/{+path}","compare_url":"https://api.github.com/repos/akatz000/breakable_toy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/akatz000/breakable_toy/merges","archive_url":"https://api.github.com/repos/akatz000/breakable_toy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/akatz000/breakable_toy/downloads","issues_url":"https://api.github.com/repos/akatz000/breakable_toy/issues{/number}","pulls_url":"https://api.github.com/repos/akatz000/breakable_toy/pulls{/number}","milestones_url":"https://api.github.com/repos/akatz000/breakable_toy/milestones{/number}","notifications_url":"https://api.github.com/repos/akatz000/breakable_toy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/akatz000/breakable_toy/labels{/name}","releases_url":"https://api.github.com/repos/akatz000/breakable_toy/releases{/id}","created_at":"2015-10-05T15:25:57Z","updated_at":"2015-10-12T20:23:59Z","pushed_at":"2015-11-05T04:08:50Z","git_url":"git://github.com/akatz000/breakable_toy.git","ssh_url":"git@github.com:akatz000/breakable_toy.git","clone_url":"https://github.com/akatz000/breakable_toy.git","svn_url":"https://github.com/akatz000/breakable_toy","homepage":null,"size":7348,"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":"master"}},"base":{"label":"akatz000:master","ref":"master","sha":"bb89b2a7ca1df84bfd7371c5e802247408f1eb21","user":{"login":"akatz000","id":12253843,"avatar_url":"https://avatars.githubusercontent.com/u/12253843?v=3","gravatar_id":"","url":"https://api.github.com/users/akatz000","html_url":"https://github.com/akatz000","followers_url":"https://api.github.com/users/akatz000/followers","following_url":"https://api.github.com/users/akatz000/following{/other_user}","gists_url":"https://api.github.com/users/akatz000/gists{/gist_id}","starred_url":"https://api.github.com/users/akatz000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akatz000/subscriptions","organizations_url":"https://api.github.com/users/akatz000/orgs","repos_url":"https://api.github.com/users/akatz000/repos","events_url":"https://api.github.com/users/akatz000/events{/privacy}","received_events_url":"https://api.github.com/users/akatz000/received_events","type":"User","site_admin":false},"repo":{"id":43693421,"name":"breakable_toy","full_name":"akatz000/breakable_toy","owner":{"login":"akatz000","id":12253843,"avatar_url":"https://avatars.githubusercontent.com/u/12253843?v=3","gravatar_id":"","url":"https://api.github.com/users/akatz000","html_url":"https://github.com/akatz000","followers_url":"https://api.github.com/users/akatz000/followers","following_url":"https://api.github.com/users/akatz000/following{/other_user}","gists_url":"https://api.github.com/users/akatz000/gists{/gist_id}","starred_url":"https://api.github.com/users/akatz000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akatz000/subscriptions","organizations_url":"https://api.github.com/users/akatz000/orgs","repos_url":"https://api.github.com/users/akatz000/repos","events_url":"https://api.github.com/users/akatz000/events{/privacy}","received_events_url":"https://api.github.com/users/akatz000/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/akatz000/breakable_toy","description":"Shpagleeble","fork":false,"url":"https://api.github.com/repos/akatz000/breakable_toy","forks_url":"https://api.github.com/repos/akatz000/breakable_toy/forks","keys_url":"https://api.github.com/repos/akatz000/breakable_toy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/akatz000/breakable_toy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/akatz000/breakable_toy/teams","hooks_url":"https://api.github.com/repos/akatz000/breakable_toy/hooks","issue_events_url":"https://api.github.com/repos/akatz000/breakable_toy/issues/events{/number}","events_url":"https://api.github.com/repos/akatz000/breakable_toy/events","assignees_url":"https://api.github.com/repos/akatz000/breakable_toy/assignees{/user}","branches_url":"https://api.github.com/repos/akatz000/breakable_toy/branches{/branch}","tags_url":"https://api.github.com/repos/akatz000/breakable_toy/tags","blobs_url":"https://api.github.com/repos/akatz000/breakable_toy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/akatz000/breakable_toy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/akatz000/breakable_toy/git/refs{/sha}","trees_url":"https://api.github.com/repos/akatz000/breakable_toy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/akatz000/breakable_toy/statuses/{sha}","languages_url":"https://api.github.com/repos/akatz000/breakable_toy/languages","stargazers_url":"https://api.github.com/repos/akatz000/breakable_toy/stargazers","contributors_url":"https://api.github.com/repos/akatz000/breakable_toy/contributors","subscribers_url":"https://api.github.com/repos/akatz000/breakable_toy/subscribers","subscription_url":"https://api.github.com/repos/akatz000/breakable_toy/subscription","commits_url":"https://api.github.com/repos/akatz000/breakable_toy/commits{/sha}","git_commits_url":"https://api.github.com/repos/akatz000/breakable_toy/git/commits{/sha}","comments_url":"https://api.github.com/repos/akatz000/breakable_toy/comments{/number}","issue_comment_url":"https://api.github.com/repos/akatz000/breakable_toy/issues/comments{/number}","contents_url":"https://api.github.com/repos/akatz000/breakable_toy/contents/{+path}","compare_url":"https://api.github.com/repos/akatz000/breakable_toy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/akatz000/breakable_toy/merges","archive_url":"https://api.github.com/repos/akatz000/breakable_toy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/akatz000/breakable_toy/downloads","issues_url":"https://api.github.com/repos/akatz000/breakable_toy/issues{/number}","pulls_url":"https://api.github.com/repos/akatz000/breakable_toy/pulls{/number}","milestones_url":"https://api.github.com/repos/akatz000/breakable_toy/milestones{/number}","notifications_url":"https://api.github.com/repos/akatz000/breakable_toy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/akatz000/breakable_toy/labels{/name}","releases_url":"https://api.github.com/repos/akatz000/breakable_toy/releases{/id}","created_at":"2015-10-05T15:25:57Z","updated_at":"2015-10-12T20:23:59Z","pushed_at":"2015-11-05T04:08:50Z","git_url":"git://github.com/akatz000/breakable_toy.git","ssh_url":"git@github.com:akatz000/breakable_toy.git","clone_url":"https://github.com/akatz000/breakable_toy.git","svn_url":"https://github.com/akatz000/breakable_toy","homepage":null,"size":7348,"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":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/akatz000/breakable_toy/pulls/23"},"html":{"href":"https://github.com/akatz000/breakable_toy/pull/23"},"issue":{"href":"https://api.github.com/repos/akatz000/breakable_toy/issues/23"},"comments":{"href":"https://api.github.com/repos/akatz000/breakable_toy/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/akatz000/breakable_toy/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/akatz000/breakable_toy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/akatz000/breakable_toy/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/akatz000/breakable_toy/statuses/e2d9b74c40b38b4b98fa7e737251833a9c93e22b"}}}}