{"action":"closed","number":42,"pull_request":{"url":"https://api.github.com/repos/harryganz/slice_invaders/pulls/42","id":58554677,"html_url":"https://github.com/harryganz/slice_invaders/pull/42","diff_url":"https://github.com/harryganz/slice_invaders/pull/42.diff","patch_url":"https://github.com/harryganz/slice_invaders/pull/42.patch","issue_url":"https://api.github.com/repos/harryganz/slice_invaders/issues/42","number":42,"state":"closed","locked":false,"title":"DOM and code optimization","user":{"login":"harryganz","id":8699738,"avatar_url":"https://avatars.githubusercontent.com/u/8699738?v=3","gravatar_id":"","url":"https://api.github.com/users/harryganz","html_url":"https://github.com/harryganz","followers_url":"https://api.github.com/users/harryganz/followers","following_url":"https://api.github.com/users/harryganz/following{/other_user}","gists_url":"https://api.github.com/users/harryganz/gists{/gist_id}","starred_url":"https://api.github.com/users/harryganz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harryganz/subscriptions","organizations_url":"https://api.github.com/users/harryganz/orgs","repos_url":"https://api.github.com/users/harryganz/repos","events_url":"https://api.github.com/users/harryganz/events{/privacy}","received_events_url":"https://api.github.com/users/harryganz/received_events","type":"User","site_admin":false},"body":"* Hide instead of removing DOM elements during game \r\n* Remove all listeners on quit to prevent memory leak\r\n* Reset all DOM elements on restart to prevent memory leak (slightly inefficient)\r\n* Encapsulate draw functions for dryer code\r\n* Reorganize functions into order they are used in game setup/loop/teardown","created_at":"2016-02-07T19:33:36Z","updated_at":"2016-02-07T19:33:44Z","closed_at":"2016-02-07T19:33:44Z","merged_at":"2016-02-07T19:33:44Z","merge_commit_sha":"cb76458ead9184e36c8a6c53a6f86ec801016903","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/harryganz/slice_invaders/pulls/42/commits","review_comments_url":"https://api.github.com/repos/harryganz/slice_invaders/pulls/42/comments","review_comment_url":"https://api.github.com/repos/harryganz/slice_invaders/pulls/comments{/number}","comments_url":"https://api.github.com/repos/harryganz/slice_invaders/issues/42/comments","statuses_url":"https://api.github.com/repos/harryganz/slice_invaders/statuses/d2f6083e52b6523955b72435815ca62ea5dbfdad","head":{"label":"harryganz:dry-code","ref":"dry-code","sha":"d2f6083e52b6523955b72435815ca62ea5dbfdad","user":{"login":"harryganz","id":8699738,"avatar_url":"https://avatars.githubusercontent.com/u/8699738?v=3","gravatar_id":"","url":"https://api.github.com/users/harryganz","html_url":"https://github.com/harryganz","followers_url":"https://api.github.com/users/harryganz/followers","following_url":"https://api.github.com/users/harryganz/following{/other_user}","gists_url":"https://api.github.com/users/harryganz/gists{/gist_id}","starred_url":"https://api.github.com/users/harryganz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harryganz/subscriptions","organizations_url":"https://api.github.com/users/harryganz/orgs","repos_url":"https://api.github.com/users/harryganz/repos","events_url":"https://api.github.com/users/harryganz/events{/privacy}","received_events_url":"https://api.github.com/users/harryganz/received_events","type":"User","site_admin":false},"repo":{"id":50947372,"name":"slice_invaders","full_name":"harryganz/slice_invaders","owner":{"login":"harryganz","id":8699738,"avatar_url":"https://avatars.githubusercontent.com/u/8699738?v=3","gravatar_id":"","url":"https://api.github.com/users/harryganz","html_url":"https://github.com/harryganz","followers_url":"https://api.github.com/users/harryganz/followers","following_url":"https://api.github.com/users/harryganz/following{/other_user}","gists_url":"https://api.github.com/users/harryganz/gists{/gist_id}","starred_url":"https://api.github.com/users/harryganz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harryganz/subscriptions","organizations_url":"https://api.github.com/users/harryganz/orgs","repos_url":"https://api.github.com/users/harryganz/repos","events_url":"https://api.github.com/users/harryganz/events{/privacy}","received_events_url":"https://api.github.com/users/harryganz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/harryganz/slice_invaders","description":"You must defeat invading pizza slices threatening to ruin your diet","fork":false,"url":"https://api.github.com/repos/harryganz/slice_invaders","forks_url":"https://api.github.com/repos/harryganz/slice_invaders/forks","keys_url":"https://api.github.com/repos/harryganz/slice_invaders/keys{/key_id}","collaborators_url":"https://api.github.com/repos/harryganz/slice_invaders/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/harryganz/slice_invaders/teams","hooks_url":"https://api.github.com/repos/harryganz/slice_invaders/hooks","issue_events_url":"https://api.github.com/repos/harryganz/slice_invaders/issues/events{/number}","events_url":"https://api.github.com/repos/harryganz/slice_invaders/events","assignees_url":"https://api.github.com/repos/harryganz/slice_invaders/assignees{/user}","branches_url":"https://api.github.com/repos/harryganz/slice_invaders/branches{/branch}","tags_url":"https://api.github.com/repos/harryganz/slice_invaders/tags","blobs_url":"https://api.github.com/repos/harryganz/slice_invaders/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/harryganz/slice_invaders/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/harryganz/slice_invaders/git/refs{/sha}","trees_url":"https://api.github.com/repos/harryganz/slice_invaders/git/trees{/sha}","statuses_url":"https://api.github.com/repos/harryganz/slice_invaders/statuses/{sha}","languages_url":"https://api.github.com/repos/harryganz/slice_invaders/languages","stargazers_url":"https://api.github.com/repos/harryganz/slice_invaders/stargazers","contributors_url":"https://api.github.com/repos/harryganz/slice_invaders/contributors","subscribers_url":"https://api.github.com/repos/harryganz/slice_invaders/subscribers","subscription_url":"https://api.github.com/repos/harryganz/slice_invaders/subscription","commits_url":"https://api.github.com/repos/harryganz/slice_invaders/commits{/sha}","git_commits_url":"https://api.github.com/repos/harryganz/slice_invaders/git/commits{/sha}","comments_url":"https://api.github.com/repos/harryganz/slice_invaders/comments{/number}","issue_comment_url":"https://api.github.com/repos/harryganz/slice_invaders/issues/comments{/number}","contents_url":"https://api.github.com/repos/harryganz/slice_invaders/contents/{+path}","compare_url":"https://api.github.com/repos/harryganz/slice_invaders/compare/{base}...{head}","merges_url":"https://api.github.com/repos/harryganz/slice_invaders/merges","archive_url":"https://api.github.com/repos/harryganz/slice_invaders/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/harryganz/slice_invaders/downloads","issues_url":"https://api.github.com/repos/harryganz/slice_invaders/issues{/number}","pulls_url":"https://api.github.com/repos/harryganz/slice_invaders/pulls{/number}","milestones_url":"https://api.github.com/repos/harryganz/slice_invaders/milestones{/number}","notifications_url":"https://api.github.com/repos/harryganz/slice_invaders/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/harryganz/slice_invaders/labels{/name}","releases_url":"https://api.github.com/repos/harryganz/slice_invaders/releases{/id}","deployments_url":"https://api.github.com/repos/harryganz/slice_invaders/deployments","created_at":"2016-02-02T19:51:12Z","updated_at":"2016-02-03T15:45:21Z","pushed_at":"2016-02-07T19:33:44Z","git_url":"git://github.com/harryganz/slice_invaders.git","ssh_url":"git@github.com:harryganz/slice_invaders.git","clone_url":"https://github.com/harryganz/slice_invaders.git","svn_url":"https://github.com/harryganz/slice_invaders","homepage":null,"size":36,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":11,"forks":0,"open_issues":11,"watchers":0,"default_branch":"master"}},"base":{"label":"harryganz:master","ref":"master","sha":"d0d44c6a3166c780e09e143d3b113da8bb025570","user":{"login":"harryganz","id":8699738,"avatar_url":"https://avatars.githubusercontent.com/u/8699738?v=3","gravatar_id":"","url":"https://api.github.com/users/harryganz","html_url":"https://github.com/harryganz","followers_url":"https://api.github.com/users/harryganz/followers","following_url":"https://api.github.com/users/harryganz/following{/other_user}","gists_url":"https://api.github.com/users/harryganz/gists{/gist_id}","starred_url":"https://api.github.com/users/harryganz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harryganz/subscriptions","organizations_url":"https://api.github.com/users/harryganz/orgs","repos_url":"https://api.github.com/users/harryganz/repos","events_url":"https://api.github.com/users/harryganz/events{/privacy}","received_events_url":"https://api.github.com/users/harryganz/received_events","type":"User","site_admin":false},"repo":{"id":50947372,"name":"slice_invaders","full_name":"harryganz/slice_invaders","owner":{"login":"harryganz","id":8699738,"avatar_url":"https://avatars.githubusercontent.com/u/8699738?v=3","gravatar_id":"","url":"https://api.github.com/users/harryganz","html_url":"https://github.com/harryganz","followers_url":"https://api.github.com/users/harryganz/followers","following_url":"https://api.github.com/users/harryganz/following{/other_user}","gists_url":"https://api.github.com/users/harryganz/gists{/gist_id}","starred_url":"https://api.github.com/users/harryganz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harryganz/subscriptions","organizations_url":"https://api.github.com/users/harryganz/orgs","repos_url":"https://api.github.com/users/harryganz/repos","events_url":"https://api.github.com/users/harryganz/events{/privacy}","received_events_url":"https://api.github.com/users/harryganz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/harryganz/slice_invaders","description":"You must defeat invading pizza slices threatening to ruin your diet","fork":false,"url":"https://api.github.com/repos/harryganz/slice_invaders","forks_url":"https://api.github.com/repos/harryganz/slice_invaders/forks","keys_url":"https://api.github.com/repos/harryganz/slice_invaders/keys{/key_id}","collaborators_url":"https://api.github.com/repos/harryganz/slice_invaders/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/harryganz/slice_invaders/teams","hooks_url":"https://api.github.com/repos/harryganz/slice_invaders/hooks","issue_events_url":"https://api.github.com/repos/harryganz/slice_invaders/issues/events{/number}","events_url":"https://api.github.com/repos/harryganz/slice_invaders/events","assignees_url":"https://api.github.com/repos/harryganz/slice_invaders/assignees{/user}","branches_url":"https://api.github.com/repos/harryganz/slice_invaders/branches{/branch}","tags_url":"https://api.github.com/repos/harryganz/slice_invaders/tags","blobs_url":"https://api.github.com/repos/harryganz/slice_invaders/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/harryganz/slice_invaders/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/harryganz/slice_invaders/git/refs{/sha}","trees_url":"https://api.github.com/repos/harryganz/slice_invaders/git/trees{/sha}","statuses_url":"https://api.github.com/repos/harryganz/slice_invaders/statuses/{sha}","languages_url":"https://api.github.com/repos/harryganz/slice_invaders/languages","stargazers_url":"https://api.github.com/repos/harryganz/slice_invaders/stargazers","contributors_url":"https://api.github.com/repos/harryganz/slice_invaders/contributors","subscribers_url":"https://api.github.com/repos/harryganz/slice_invaders/subscribers","subscription_url":"https://api.github.com/repos/harryganz/slice_invaders/subscription","commits_url":"https://api.github.com/repos/harryganz/slice_invaders/commits{/sha}","git_commits_url":"https://api.github.com/repos/harryganz/slice_invaders/git/commits{/sha}","comments_url":"https://api.github.com/repos/harryganz/slice_invaders/comments{/number}","issue_comment_url":"https://api.github.com/repos/harryganz/slice_invaders/issues/comments{/number}","contents_url":"https://api.github.com/repos/harryganz/slice_invaders/contents/{+path}","compare_url":"https://api.github.com/repos/harryganz/slice_invaders/compare/{base}...{head}","merges_url":"https://api.github.com/repos/harryganz/slice_invaders/merges","archive_url":"https://api.github.com/repos/harryganz/slice_invaders/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/harryganz/slice_invaders/downloads","issues_url":"https://api.github.com/repos/harryganz/slice_invaders/issues{/number}","pulls_url":"https://api.github.com/repos/harryganz/slice_invaders/pulls{/number}","milestones_url":"https://api.github.com/repos/harryganz/slice_invaders/milestones{/number}","notifications_url":"https://api.github.com/repos/harryganz/slice_invaders/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/harryganz/slice_invaders/labels{/name}","releases_url":"https://api.github.com/repos/harryganz/slice_invaders/releases{/id}","deployments_url":"https://api.github.com/repos/harryganz/slice_invaders/deployments","created_at":"2016-02-02T19:51:12Z","updated_at":"2016-02-03T15:45:21Z","pushed_at":"2016-02-07T19:33:44Z","git_url":"git://github.com/harryganz/slice_invaders.git","ssh_url":"git@github.com:harryganz/slice_invaders.git","clone_url":"https://github.com/harryganz/slice_invaders.git","svn_url":"https://github.com/harryganz/slice_invaders","homepage":null,"size":36,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":11,"forks":0,"open_issues":11,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/harryganz/slice_invaders/pulls/42"},"html":{"href":"https://github.com/harryganz/slice_invaders/pull/42"},"issue":{"href":"https://api.github.com/repos/harryganz/slice_invaders/issues/42"},"comments":{"href":"https://api.github.com/repos/harryganz/slice_invaders/issues/42/comments"},"review_comments":{"href":"https://api.github.com/repos/harryganz/slice_invaders/pulls/42/comments"},"review_comment":{"href":"https://api.github.com/repos/harryganz/slice_invaders/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/harryganz/slice_invaders/pulls/42/commits"},"statuses":{"href":"https://api.github.com/repos/harryganz/slice_invaders/statuses/d2f6083e52b6523955b72435815ca62ea5dbfdad"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"harryganz","id":8699738,"avatar_url":"https://avatars.githubusercontent.com/u/8699738?v=3","gravatar_id":"","url":"https://api.github.com/users/harryganz","html_url":"https://github.com/harryganz","followers_url":"https://api.github.com/users/harryganz/followers","following_url":"https://api.github.com/users/harryganz/following{/other_user}","gists_url":"https://api.github.com/users/harryganz/gists{/gist_id}","starred_url":"https://api.github.com/users/harryganz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harryganz/subscriptions","organizations_url":"https://api.github.com/users/harryganz/orgs","repos_url":"https://api.github.com/users/harryganz/repos","events_url":"https://api.github.com/users/harryganz/events{/privacy}","received_events_url":"https://api.github.com/users/harryganz/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":2,"additions":109,"deletions":108,"changed_files":1}}