{"action":"closed","number":2,"pull_request":{"url":"https://api.github.com/repos/BenAttenborough/AddressBook/pulls/2","id":38736121,"html_url":"https://github.com/BenAttenborough/AddressBook/pull/2","diff_url":"https://github.com/BenAttenborough/AddressBook/pull/2.diff","patch_url":"https://github.com/BenAttenborough/AddressBook/pull/2.patch","issue_url":"https://api.github.com/repos/BenAttenborough/AddressBook/issues/2","number":2,"state":"closed","locked":false,"title":"Fixed buttons","user":{"login":"chalkers","id":9805,"avatar_url":"https://avatars.githubusercontent.com/u/9805?v=3","gravatar_id":"","url":"https://api.github.com/users/chalkers","html_url":"https://github.com/chalkers","followers_url":"https://api.github.com/users/chalkers/followers","following_url":"https://api.github.com/users/chalkers/following{/other_user}","gists_url":"https://api.github.com/users/chalkers/gists{/gist_id}","starred_url":"https://api.github.com/users/chalkers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chalkers/subscriptions","organizations_url":"https://api.github.com/users/chalkers/orgs","repos_url":"https://api.github.com/users/chalkers/repos","events_url":"https://api.github.com/users/chalkers/events{/privacy}","received_events_url":"https://api.github.com/users/chalkers/received_events","type":"User","site_admin":false},"body":"Hey there,\r\n\r\nIn the current version of JavaScript, `for` loops variables (like `button`, or `i`) will still be in memory as the last version. There's no such thing a block scope.\r\n\r\nSo you can either get around the issue but using a `forEach()` function or you encapsulate the binding in another function call creating a new scope.\r\n\r\nRegards\r\nAndrew","created_at":"2015-06-29T01:35:56Z","updated_at":"2015-06-29T21:23:44Z","closed_at":"2015-06-29T21:23:44Z","merged_at":"2015-06-29T21:23:44Z","merge_commit_sha":"e20c5c84becbadccb936a5aabf6d9ea9682e7d69","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/BenAttenborough/AddressBook/pulls/2/commits","review_comments_url":"https://api.github.com/repos/BenAttenborough/AddressBook/pulls/2/comments","review_comment_url":"https://api.github.com/repos/BenAttenborough/AddressBook/pulls/comments{/number}","comments_url":"https://api.github.com/repos/BenAttenborough/AddressBook/issues/2/comments","statuses_url":"https://api.github.com/repos/BenAttenborough/AddressBook/statuses/830ba6d1050571f8ac3adba65344858698604810","head":{"label":"chalkers:master","ref":"master","sha":"830ba6d1050571f8ac3adba65344858698604810","user":{"login":"chalkers","id":9805,"avatar_url":"https://avatars.githubusercontent.com/u/9805?v=3","gravatar_id":"","url":"https://api.github.com/users/chalkers","html_url":"https://github.com/chalkers","followers_url":"https://api.github.com/users/chalkers/followers","following_url":"https://api.github.com/users/chalkers/following{/other_user}","gists_url":"https://api.github.com/users/chalkers/gists{/gist_id}","starred_url":"https://api.github.com/users/chalkers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chalkers/subscriptions","organizations_url":"https://api.github.com/users/chalkers/orgs","repos_url":"https://api.github.com/users/chalkers/repos","events_url":"https://api.github.com/users/chalkers/events{/privacy}","received_events_url":"https://api.github.com/users/chalkers/received_events","type":"User","site_admin":false},"repo":{"id":38221420,"name":"AddressBook","full_name":"chalkers/AddressBook","owner":{"login":"chalkers","id":9805,"avatar_url":"https://avatars.githubusercontent.com/u/9805?v=3","gravatar_id":"","url":"https://api.github.com/users/chalkers","html_url":"https://github.com/chalkers","followers_url":"https://api.github.com/users/chalkers/followers","following_url":"https://api.github.com/users/chalkers/following{/other_user}","gists_url":"https://api.github.com/users/chalkers/gists{/gist_id}","starred_url":"https://api.github.com/users/chalkers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chalkers/subscriptions","organizations_url":"https://api.github.com/users/chalkers/orgs","repos_url":"https://api.github.com/users/chalkers/repos","events_url":"https://api.github.com/users/chalkers/events{/privacy}","received_events_url":"https://api.github.com/users/chalkers/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/chalkers/AddressBook","description":"Treehouse.com Address Book JS extra credit","fork":true,"url":"https://api.github.com/repos/chalkers/AddressBook","forks_url":"https://api.github.com/repos/chalkers/AddressBook/forks","keys_url":"https://api.github.com/repos/chalkers/AddressBook/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chalkers/AddressBook/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chalkers/AddressBook/teams","hooks_url":"https://api.github.com/repos/chalkers/AddressBook/hooks","issue_events_url":"https://api.github.com/repos/chalkers/AddressBook/issues/events{/number}","events_url":"https://api.github.com/repos/chalkers/AddressBook/events","assignees_url":"https://api.github.com/repos/chalkers/AddressBook/assignees{/user}","branches_url":"https://api.github.com/repos/chalkers/AddressBook/branches{/branch}","tags_url":"https://api.github.com/repos/chalkers/AddressBook/tags","blobs_url":"https://api.github.com/repos/chalkers/AddressBook/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chalkers/AddressBook/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chalkers/AddressBook/git/refs{/sha}","trees_url":"https://api.github.com/repos/chalkers/AddressBook/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chalkers/AddressBook/statuses/{sha}","languages_url":"https://api.github.com/repos/chalkers/AddressBook/languages","stargazers_url":"https://api.github.com/repos/chalkers/AddressBook/stargazers","contributors_url":"https://api.github.com/repos/chalkers/AddressBook/contributors","subscribers_url":"https://api.github.com/repos/chalkers/AddressBook/subscribers","subscription_url":"https://api.github.com/repos/chalkers/AddressBook/subscription","commits_url":"https://api.github.com/repos/chalkers/AddressBook/commits{/sha}","git_commits_url":"https://api.github.com/repos/chalkers/AddressBook/git/commits{/sha}","comments_url":"https://api.github.com/repos/chalkers/AddressBook/comments{/number}","issue_comment_url":"https://api.github.com/repos/chalkers/AddressBook/issues/comments{/number}","contents_url":"https://api.github.com/repos/chalkers/AddressBook/contents/{+path}","compare_url":"https://api.github.com/repos/chalkers/AddressBook/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chalkers/AddressBook/merges","archive_url":"https://api.github.com/repos/chalkers/AddressBook/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chalkers/AddressBook/downloads","issues_url":"https://api.github.com/repos/chalkers/AddressBook/issues{/number}","pulls_url":"https://api.github.com/repos/chalkers/AddressBook/pulls{/number}","milestones_url":"https://api.github.com/repos/chalkers/AddressBook/milestones{/number}","notifications_url":"https://api.github.com/repos/chalkers/AddressBook/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chalkers/AddressBook/labels{/name}","releases_url":"https://api.github.com/repos/chalkers/AddressBook/releases{/id}","created_at":"2015-06-29T01:31:31Z","updated_at":"2015-06-29T01:31:32Z","pushed_at":"2015-06-29T01:33:09Z","git_url":"git://github.com/chalkers/AddressBook.git","ssh_url":"git@github.com:chalkers/AddressBook.git","clone_url":"https://github.com/chalkers/AddressBook.git","svn_url":"https://github.com/chalkers/AddressBook","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"CSS","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":"BenAttenborough:master","ref":"master","sha":"5582ba77bcc51259857f3f40c3dcaf38dca95e29","user":{"login":"BenAttenborough","id":8101421,"avatar_url":"https://avatars.githubusercontent.com/u/8101421?v=3","gravatar_id":"","url":"https://api.github.com/users/BenAttenborough","html_url":"https://github.com/BenAttenborough","followers_url":"https://api.github.com/users/BenAttenborough/followers","following_url":"https://api.github.com/users/BenAttenborough/following{/other_user}","gists_url":"https://api.github.com/users/BenAttenborough/gists{/gist_id}","starred_url":"https://api.github.com/users/BenAttenborough/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BenAttenborough/subscriptions","organizations_url":"https://api.github.com/users/BenAttenborough/orgs","repos_url":"https://api.github.com/users/BenAttenborough/repos","events_url":"https://api.github.com/users/BenAttenborough/events{/privacy}","received_events_url":"https://api.github.com/users/BenAttenborough/received_events","type":"User","site_admin":false},"repo":{"id":38207249,"name":"AddressBook","full_name":"BenAttenborough/AddressBook","owner":{"login":"BenAttenborough","id":8101421,"avatar_url":"https://avatars.githubusercontent.com/u/8101421?v=3","gravatar_id":"","url":"https://api.github.com/users/BenAttenborough","html_url":"https://github.com/BenAttenborough","followers_url":"https://api.github.com/users/BenAttenborough/followers","following_url":"https://api.github.com/users/BenAttenborough/following{/other_user}","gists_url":"https://api.github.com/users/BenAttenborough/gists{/gist_id}","starred_url":"https://api.github.com/users/BenAttenborough/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BenAttenborough/subscriptions","organizations_url":"https://api.github.com/users/BenAttenborough/orgs","repos_url":"https://api.github.com/users/BenAttenborough/repos","events_url":"https://api.github.com/users/BenAttenborough/events{/privacy}","received_events_url":"https://api.github.com/users/BenAttenborough/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/BenAttenborough/AddressBook","description":"Treehouse.com Address Book JS extra credit","fork":false,"url":"https://api.github.com/repos/BenAttenborough/AddressBook","forks_url":"https://api.github.com/repos/BenAttenborough/AddressBook/forks","keys_url":"https://api.github.com/repos/BenAttenborough/AddressBook/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BenAttenborough/AddressBook/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BenAttenborough/AddressBook/teams","hooks_url":"https://api.github.com/repos/BenAttenborough/AddressBook/hooks","issue_events_url":"https://api.github.com/repos/BenAttenborough/AddressBook/issues/events{/number}","events_url":"https://api.github.com/repos/BenAttenborough/AddressBook/events","assignees_url":"https://api.github.com/repos/BenAttenborough/AddressBook/assignees{/user}","branches_url":"https://api.github.com/repos/BenAttenborough/AddressBook/branches{/branch}","tags_url":"https://api.github.com/repos/BenAttenborough/AddressBook/tags","blobs_url":"https://api.github.com/repos/BenAttenborough/AddressBook/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BenAttenborough/AddressBook/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BenAttenborough/AddressBook/git/refs{/sha}","trees_url":"https://api.github.com/repos/BenAttenborough/AddressBook/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BenAttenborough/AddressBook/statuses/{sha}","languages_url":"https://api.github.com/repos/BenAttenborough/AddressBook/languages","stargazers_url":"https://api.github.com/repos/BenAttenborough/AddressBook/stargazers","contributors_url":"https://api.github.com/repos/BenAttenborough/AddressBook/contributors","subscribers_url":"https://api.github.com/repos/BenAttenborough/AddressBook/subscribers","subscription_url":"https://api.github.com/repos/BenAttenborough/AddressBook/subscription","commits_url":"https://api.github.com/repos/BenAttenborough/AddressBook/commits{/sha}","git_commits_url":"https://api.github.com/repos/BenAttenborough/AddressBook/git/commits{/sha}","comments_url":"https://api.github.com/repos/BenAttenborough/AddressBook/comments{/number}","issue_comment_url":"https://api.github.com/repos/BenAttenborough/AddressBook/issues/comments{/number}","contents_url":"https://api.github.com/repos/BenAttenborough/AddressBook/contents/{+path}","compare_url":"https://api.github.com/repos/BenAttenborough/AddressBook/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BenAttenborough/AddressBook/merges","archive_url":"https://api.github.com/repos/BenAttenborough/AddressBook/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BenAttenborough/AddressBook/downloads","issues_url":"https://api.github.com/repos/BenAttenborough/AddressBook/issues{/number}","pulls_url":"https://api.github.com/repos/BenAttenborough/AddressBook/pulls{/number}","milestones_url":"https://api.github.com/repos/BenAttenborough/AddressBook/milestones{/number}","notifications_url":"https://api.github.com/repos/BenAttenborough/AddressBook/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BenAttenborough/AddressBook/labels{/name}","releases_url":"https://api.github.com/repos/BenAttenborough/AddressBook/releases{/id}","created_at":"2015-06-28T17:17:36Z","updated_at":"2015-06-28T17:17:48Z","pushed_at":"2015-06-29T21:23:44Z","git_url":"git://github.com/BenAttenborough/AddressBook.git","ssh_url":"git@github.com:BenAttenborough/AddressBook.git","clone_url":"https://github.com/BenAttenborough/AddressBook.git","svn_url":"https://github.com/BenAttenborough/AddressBook","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/BenAttenborough/AddressBook/pulls/2"},"html":{"href":"https://github.com/BenAttenborough/AddressBook/pull/2"},"issue":{"href":"https://api.github.com/repos/BenAttenborough/AddressBook/issues/2"},"comments":{"href":"https://api.github.com/repos/BenAttenborough/AddressBook/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/BenAttenborough/AddressBook/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/BenAttenborough/AddressBook/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/BenAttenborough/AddressBook/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/BenAttenborough/AddressBook/statuses/830ba6d1050571f8ac3adba65344858698604810"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"BenAttenborough","id":8101421,"avatar_url":"https://avatars.githubusercontent.com/u/8101421?v=3","gravatar_id":"","url":"https://api.github.com/users/BenAttenborough","html_url":"https://github.com/BenAttenborough","followers_url":"https://api.github.com/users/BenAttenborough/followers","following_url":"https://api.github.com/users/BenAttenborough/following{/other_user}","gists_url":"https://api.github.com/users/BenAttenborough/gists{/gist_id}","starred_url":"https://api.github.com/users/BenAttenborough/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BenAttenborough/subscriptions","organizations_url":"https://api.github.com/users/BenAttenborough/orgs","repos_url":"https://api.github.com/users/BenAttenborough/repos","events_url":"https://api.github.com/users/BenAttenborough/events{/privacy}","received_events_url":"https://api.github.com/users/BenAttenborough/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":6,"deletions":8,"changed_files":2}}