{"action":"opened","number":77,"pull_request":{"url":"https://api.github.com/repos/betterangels/buoy/pulls/77","id":65916159,"html_url":"https://github.com/betterangels/buoy/pull/77","diff_url":"https://github.com/betterangels/buoy/pull/77.diff","patch_url":"https://github.com/betterangels/buoy/pull/77.patch","issue_url":"https://api.github.com/repos/betterangels/buoy/issues/77","number":77,"state":"open","locked":false,"title":"Begin major JavaScript refactoring. Headway towards #75.","user":{"login":"meitar","id":18677,"avatar_url":"https://avatars.githubusercontent.com/u/18677?v=3","gravatar_id":"","url":"https://api.github.com/users/meitar","html_url":"https://github.com/meitar","followers_url":"https://api.github.com/users/meitar/followers","following_url":"https://api.github.com/users/meitar/following{/other_user}","gists_url":"https://api.github.com/users/meitar/gists{/gist_id}","starred_url":"https://api.github.com/users/meitar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meitar/subscriptions","organizations_url":"https://api.github.com/users/meitar/orgs","repos_url":"https://api.github.com/users/meitar/repos","events_url":"https://api.github.com/users/meitar/events{/privacy}","received_events_url":"https://api.github.com/users/meitar/received_events","type":"User","site_admin":false},"body":"This commit breaks up the huge `BUOY.init` function by, primarily,\r\nmaking two additional \"modules\" called `BUOY_ALERT` and `BUOY_MAP`,\r\nwhich handle the alert (panic button) screen and the majority of the\r\nmapping functionality, respectively.\r\n\r\nThe code for each of these now lives in their own file, though this\r\ncould still use a bit more restructuring for both the code and the file\r\nsystem location.\r\n\r\nA number of generically named elements (like `map`) have been renamed to\r\nmore specific ID values (`buoy-map`).\r\n\r\nFinally, the JavaScript tests now depend on jQuery, so we reconfigure\r\nKarma to load the JavaScript in `bower_components` first (i.e., jQuery).","created_at":"2016-04-10T17:07:16Z","updated_at":"2016-04-10T17:07:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c18ba5bed0931113b704fcb8385e37afbf5a0181","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/betterangels/buoy/pulls/77/commits","review_comments_url":"https://api.github.com/repos/betterangels/buoy/pulls/77/comments","review_comment_url":"https://api.github.com/repos/betterangels/buoy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/betterangels/buoy/issues/77/comments","statuses_url":"https://api.github.com/repos/betterangels/buoy/statuses/cb626b3092b955b61eb3e37cab4327a1a2de935e","head":{"label":"meitar:develop","ref":"develop","sha":"cb626b3092b955b61eb3e37cab4327a1a2de935e","user":{"login":"meitar","id":18677,"avatar_url":"https://avatars.githubusercontent.com/u/18677?v=3","gravatar_id":"","url":"https://api.github.com/users/meitar","html_url":"https://github.com/meitar","followers_url":"https://api.github.com/users/meitar/followers","following_url":"https://api.github.com/users/meitar/following{/other_user}","gists_url":"https://api.github.com/users/meitar/gists{/gist_id}","starred_url":"https://api.github.com/users/meitar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meitar/subscriptions","organizations_url":"https://api.github.com/users/meitar/orgs","repos_url":"https://api.github.com/users/meitar/repos","events_url":"https://api.github.com/users/meitar/events{/privacy}","received_events_url":"https://api.github.com/users/meitar/received_events","type":"User","site_admin":false},"repo":{"id":55680350,"name":"buoy","full_name":"meitar/buoy","owner":{"login":"meitar","id":18677,"avatar_url":"https://avatars.githubusercontent.com/u/18677?v=3","gravatar_id":"","url":"https://api.github.com/users/meitar","html_url":"https://github.com/meitar","followers_url":"https://api.github.com/users/meitar/followers","following_url":"https://api.github.com/users/meitar/following{/other_user}","gists_url":"https://api.github.com/users/meitar/gists{/gist_id}","starred_url":"https://api.github.com/users/meitar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meitar/subscriptions","organizations_url":"https://api.github.com/users/meitar/orgs","repos_url":"https://api.github.com/users/meitar/repos","events_url":"https://api.github.com/users/meitar/events{/privacy}","received_events_url":"https://api.github.com/users/meitar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/meitar/buoy","description":"A private, community-based crisis response system. Because friends don't let friends call the cops.","fork":true,"url":"https://api.github.com/repos/meitar/buoy","forks_url":"https://api.github.com/repos/meitar/buoy/forks","keys_url":"https://api.github.com/repos/meitar/buoy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/meitar/buoy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/meitar/buoy/teams","hooks_url":"https://api.github.com/repos/meitar/buoy/hooks","issue_events_url":"https://api.github.com/repos/meitar/buoy/issues/events{/number}","events_url":"https://api.github.com/repos/meitar/buoy/events","assignees_url":"https://api.github.com/repos/meitar/buoy/assignees{/user}","branches_url":"https://api.github.com/repos/meitar/buoy/branches{/branch}","tags_url":"https://api.github.com/repos/meitar/buoy/tags","blobs_url":"https://api.github.com/repos/meitar/buoy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/meitar/buoy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/meitar/buoy/git/refs{/sha}","trees_url":"https://api.github.com/repos/meitar/buoy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/meitar/buoy/statuses/{sha}","languages_url":"https://api.github.com/repos/meitar/buoy/languages","stargazers_url":"https://api.github.com/repos/meitar/buoy/stargazers","contributors_url":"https://api.github.com/repos/meitar/buoy/contributors","subscribers_url":"https://api.github.com/repos/meitar/buoy/subscribers","subscription_url":"https://api.github.com/repos/meitar/buoy/subscription","commits_url":"https://api.github.com/repos/meitar/buoy/commits{/sha}","git_commits_url":"https://api.github.com/repos/meitar/buoy/git/commits{/sha}","comments_url":"https://api.github.com/repos/meitar/buoy/comments{/number}","issue_comment_url":"https://api.github.com/repos/meitar/buoy/issues/comments{/number}","contents_url":"https://api.github.com/repos/meitar/buoy/contents/{+path}","compare_url":"https://api.github.com/repos/meitar/buoy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/meitar/buoy/merges","archive_url":"https://api.github.com/repos/meitar/buoy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/meitar/buoy/downloads","issues_url":"https://api.github.com/repos/meitar/buoy/issues{/number}","pulls_url":"https://api.github.com/repos/meitar/buoy/pulls{/number}","milestones_url":"https://api.github.com/repos/meitar/buoy/milestones{/number}","notifications_url":"https://api.github.com/repos/meitar/buoy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/meitar/buoy/labels{/name}","releases_url":"https://api.github.com/repos/meitar/buoy/releases{/id}","deployments_url":"https://api.github.com/repos/meitar/buoy/deployments","created_at":"2016-04-07T09:08:58Z","updated_at":"2016-04-07T09:08:59Z","pushed_at":"2016-04-10T17:06:46Z","git_url":"git://github.com/meitar/buoy.git","ssh_url":"git@github.com:meitar/buoy.git","clone_url":"https://github.com/meitar/buoy.git","svn_url":"https://github.com/meitar/buoy","homepage":"https://betterangels.github.io/buoy/","size":1503,"stargazers_count":0,"watchers_count":0,"language":"PHP","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":"betterangels:develop","ref":"develop","sha":"a36d7ec4e167e5e690b97f1708953a3562fd2eeb","user":{"login":"betterangels","id":18254254,"avatar_url":"https://avatars.githubusercontent.com/u/18254254?v=3","gravatar_id":"","url":"https://api.github.com/users/betterangels","html_url":"https://github.com/betterangels","followers_url":"https://api.github.com/users/betterangels/followers","following_url":"https://api.github.com/users/betterangels/following{/other_user}","gists_url":"https://api.github.com/users/betterangels/gists{/gist_id}","starred_url":"https://api.github.com/users/betterangels/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/betterangels/subscriptions","organizations_url":"https://api.github.com/users/betterangels/orgs","repos_url":"https://api.github.com/users/betterangels/repos","events_url":"https://api.github.com/users/betterangels/events{/privacy}","received_events_url":"https://api.github.com/users/betterangels/received_events","type":"Organization","site_admin":false},"repo":{"id":55383351,"name":"buoy","full_name":"betterangels/buoy","owner":{"login":"betterangels","id":18254254,"avatar_url":"https://avatars.githubusercontent.com/u/18254254?v=3","gravatar_id":"","url":"https://api.github.com/users/betterangels","html_url":"https://github.com/betterangels","followers_url":"https://api.github.com/users/betterangels/followers","following_url":"https://api.github.com/users/betterangels/following{/other_user}","gists_url":"https://api.github.com/users/betterangels/gists{/gist_id}","starred_url":"https://api.github.com/users/betterangels/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/betterangels/subscriptions","organizations_url":"https://api.github.com/users/betterangels/orgs","repos_url":"https://api.github.com/users/betterangels/repos","events_url":"https://api.github.com/users/betterangels/events{/privacy}","received_events_url":"https://api.github.com/users/betterangels/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/betterangels/buoy","description":"A private, community-based crisis response system. Because friends don't let friends call the cops.","fork":false,"url":"https://api.github.com/repos/betterangels/buoy","forks_url":"https://api.github.com/repos/betterangels/buoy/forks","keys_url":"https://api.github.com/repos/betterangels/buoy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/betterangels/buoy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/betterangels/buoy/teams","hooks_url":"https://api.github.com/repos/betterangels/buoy/hooks","issue_events_url":"https://api.github.com/repos/betterangels/buoy/issues/events{/number}","events_url":"https://api.github.com/repos/betterangels/buoy/events","assignees_url":"https://api.github.com/repos/betterangels/buoy/assignees{/user}","branches_url":"https://api.github.com/repos/betterangels/buoy/branches{/branch}","tags_url":"https://api.github.com/repos/betterangels/buoy/tags","blobs_url":"https://api.github.com/repos/betterangels/buoy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/betterangels/buoy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/betterangels/buoy/git/refs{/sha}","trees_url":"https://api.github.com/repos/betterangels/buoy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/betterangels/buoy/statuses/{sha}","languages_url":"https://api.github.com/repos/betterangels/buoy/languages","stargazers_url":"https://api.github.com/repos/betterangels/buoy/stargazers","contributors_url":"https://api.github.com/repos/betterangels/buoy/contributors","subscribers_url":"https://api.github.com/repos/betterangels/buoy/subscribers","subscription_url":"https://api.github.com/repos/betterangels/buoy/subscription","commits_url":"https://api.github.com/repos/betterangels/buoy/commits{/sha}","git_commits_url":"https://api.github.com/repos/betterangels/buoy/git/commits{/sha}","comments_url":"https://api.github.com/repos/betterangels/buoy/comments{/number}","issue_comment_url":"https://api.github.com/repos/betterangels/buoy/issues/comments{/number}","contents_url":"https://api.github.com/repos/betterangels/buoy/contents/{+path}","compare_url":"https://api.github.com/repos/betterangels/buoy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/betterangels/buoy/merges","archive_url":"https://api.github.com/repos/betterangels/buoy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/betterangels/buoy/downloads","issues_url":"https://api.github.com/repos/betterangels/buoy/issues{/number}","pulls_url":"https://api.github.com/repos/betterangels/buoy/pulls{/number}","milestones_url":"https://api.github.com/repos/betterangels/buoy/milestones{/number}","notifications_url":"https://api.github.com/repos/betterangels/buoy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/betterangels/buoy/labels{/name}","releases_url":"https://api.github.com/repos/betterangels/buoy/releases{/id}","deployments_url":"https://api.github.com/repos/betterangels/buoy/deployments","created_at":"2016-04-04T03:44:30Z","updated_at":"2016-04-06T14:16:44Z","pushed_at":"2016-04-10T17:07:16Z","git_url":"git://github.com/betterangels/buoy.git","ssh_url":"git@github.com:betterangels/buoy.git","clone_url":"https://github.com/betterangels/buoy.git","svn_url":"https://github.com/betterangels/buoy","homepage":"https://betterangels.github.io/buoy/","size":1488,"stargazers_count":2,"watchers_count":2,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":3,"mirror_url":null,"open_issues_count":73,"forks":3,"open_issues":73,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/betterangels/buoy/pulls/77"},"html":{"href":"https://github.com/betterangels/buoy/pull/77"},"issue":{"href":"https://api.github.com/repos/betterangels/buoy/issues/77"},"comments":{"href":"https://api.github.com/repos/betterangels/buoy/issues/77/comments"},"review_comments":{"href":"https://api.github.com/repos/betterangels/buoy/pulls/77/comments"},"review_comment":{"href":"https://api.github.com/repos/betterangels/buoy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/betterangels/buoy/pulls/77/commits"},"statuses":{"href":"https://api.github.com/repos/betterangels/buoy/statuses/cb626b3092b955b61eb3e37cab4327a1a2de935e"}},"merged":false,"mergeable":true,"mergeable_state":"unstable","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":696,"deletions":515,"changed_files":10}}