{"action":"closed","number":14,"pull_request":{"url":"https://api.github.com/repos/mrdoob/htmleditor/pulls/14","id":68040550,"html_url":"https://github.com/mrdoob/htmleditor/pull/14","diff_url":"https://github.com/mrdoob/htmleditor/pull/14.diff","patch_url":"https://github.com/mrdoob/htmleditor/pull/14.patch","issue_url":"https://api.github.com/repos/mrdoob/htmleditor/issues/14","number":14,"state":"closed","locked":false,"title":"hide wrapper-element when hiding code","user":{"login":"guybrush","id":306324,"avatar_url":"https://avatars.githubusercontent.com/u/306324?v=3","gravatar_id":"","url":"https://api.github.com/users/guybrush","html_url":"https://github.com/guybrush","followers_url":"https://api.github.com/users/guybrush/followers","following_url":"https://api.github.com/users/guybrush/following{/other_user}","gists_url":"https://api.github.com/users/guybrush/gists{/gist_id}","starred_url":"https://api.github.com/users/guybrush/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guybrush/subscriptions","organizations_url":"https://api.github.com/users/guybrush/orgs","repos_url":"https://api.github.com/users/guybrush/repos","events_url":"https://api.github.com/users/guybrush/events{/privacy}","received_events_url":"https://api.github.com/users/guybrush/received_events","type":"User","site_admin":false},"body":"it could be made better by saving the element into a var `var el = document.getElementById('editor')` and use that for toggeling `el.style.display='none'`. but i wanted to make minimal code-change :D - feel free to do it any other way and ignore this PR\r\n\r\nfixes #10\r\n\r\nhttp://guybrush.github.io/htmleditor/#B/dVVbT9swFH4uv+Kse5gZaZIhVUxtQWKlGw9UQ4A0+ugmp40hsTvHaSmI/75j5wKhXVTFJz6X79w7+nTxe3w3u55AYrL07GBUHp1RgjymszPK0HCIEq5zNKfdwix637uOkZttipbqzFW8hRdLdeY8elxqVci4F6lU6QF8Xrhn6NgZ10shBxCWn2qNepGqzQASEcco3e2rNR7U1kdB5cnIopTAkRYrA7mOTruJMatBEESxfMj9KFVFvEi5Rj9SWcAf+FOQinkemEQj+g95oPsn1UcmJF10zwjJmXtn+ezAurHmGiKeoeYe5BFK9ECjjFGjHtb8JSpKj956kHGDWvCUKMyTRiBTRY73cAqhV9IzSzfsjZCx2lzydGFlyi9fSIn6j4hNAgEc75GdfZC9RLFMTEtYSGFIalHIyAglgR1SfVzK6xiIK3EDd5c3k4k/5nLN85uKxQ6HLVGfKn8rnpHteujtc6RSj1VUZCiNbwvn89WKzI0TkcasSaQfq2ySopWyWk6tzHnLvWvU+QopkjWOHZfBSd/bm69ddzz4Rr+QntqxEsFfqVzY5PjPBNYPwwrf1boFf2tvWO1fXfN2Aos5/qoYDI5DKnf9qlHrDmnpTalZfvBcRNOKy+AFqsEJn0L32EA1LjR5PQCjC3x3cSXIlg19AMfw2uTQ9uAODtvTrrVzLmifx1Qbp1sbampIrMmaiCuRGxLVDL64fs5ohL94oORFJTm1t1O69WDB0xxrU6/u3TTkHgWGFqBp1GZ0GDgGTbeg4x56rbE5hK9U3eGbymxHZdZSmTUqb27ZkeFS2Kz8b2r+FpibcydDrJ82+azRaffuW2c9wZF1pgqlB7t864sf9vc3pu2xqn7cJBQNz1Zsx8gWjgijV+PYaF3b7cHb1ngeNXw5FR+GIlXq8dywcuM1ik2AzeCWBKs3YzW0rVrbHVStkipP1Qy9W7mjoNzqtOXt/84/","created_at":"2016-04-27T11:53:53Z","updated_at":"2016-05-01T02:39:08Z","closed_at":"2016-05-01T02:39:08Z","merged_at":"2016-05-01T02:39:08Z","merge_commit_sha":"206115d8afb5a6ff0220bc0ab1e6d9d74dcb6144","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mrdoob/htmleditor/pulls/14/commits","review_comments_url":"https://api.github.com/repos/mrdoob/htmleditor/pulls/14/comments","review_comment_url":"https://api.github.com/repos/mrdoob/htmleditor/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mrdoob/htmleditor/issues/14/comments","statuses_url":"https://api.github.com/repos/mrdoob/htmleditor/statuses/98eef9d3eddc9a2152d8f20c34a03edafb9dee57","head":{"label":"guybrush:gh-pages","ref":"gh-pages","sha":"98eef9d3eddc9a2152d8f20c34a03edafb9dee57","user":{"login":"guybrush","id":306324,"avatar_url":"https://avatars.githubusercontent.com/u/306324?v=3","gravatar_id":"","url":"https://api.github.com/users/guybrush","html_url":"https://github.com/guybrush","followers_url":"https://api.github.com/users/guybrush/followers","following_url":"https://api.github.com/users/guybrush/following{/other_user}","gists_url":"https://api.github.com/users/guybrush/gists{/gist_id}","starred_url":"https://api.github.com/users/guybrush/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guybrush/subscriptions","organizations_url":"https://api.github.com/users/guybrush/orgs","repos_url":"https://api.github.com/users/guybrush/repos","events_url":"https://api.github.com/users/guybrush/events{/privacy}","received_events_url":"https://api.github.com/users/guybrush/received_events","type":"User","site_admin":false},"repo":{"id":57209201,"name":"htmleditor","full_name":"guybrush/htmleditor","owner":{"login":"guybrush","id":306324,"avatar_url":"https://avatars.githubusercontent.com/u/306324?v=3","gravatar_id":"","url":"https://api.github.com/users/guybrush","html_url":"https://github.com/guybrush","followers_url":"https://api.github.com/users/guybrush/followers","following_url":"https://api.github.com/users/guybrush/following{/other_user}","gists_url":"https://api.github.com/users/guybrush/gists{/gist_id}","starred_url":"https://api.github.com/users/guybrush/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guybrush/subscriptions","organizations_url":"https://api.github.com/users/guybrush/orgs","repos_url":"https://api.github.com/users/guybrush/repos","events_url":"https://api.github.com/users/guybrush/events{/privacy}","received_events_url":"https://api.github.com/users/guybrush/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/guybrush/htmleditor","description":"Simple editor for messing around.","fork":true,"url":"https://api.github.com/repos/guybrush/htmleditor","forks_url":"https://api.github.com/repos/guybrush/htmleditor/forks","keys_url":"https://api.github.com/repos/guybrush/htmleditor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/guybrush/htmleditor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/guybrush/htmleditor/teams","hooks_url":"https://api.github.com/repos/guybrush/htmleditor/hooks","issue_events_url":"https://api.github.com/repos/guybrush/htmleditor/issues/events{/number}","events_url":"https://api.github.com/repos/guybrush/htmleditor/events","assignees_url":"https://api.github.com/repos/guybrush/htmleditor/assignees{/user}","branches_url":"https://api.github.com/repos/guybrush/htmleditor/branches{/branch}","tags_url":"https://api.github.com/repos/guybrush/htmleditor/tags","blobs_url":"https://api.github.com/repos/guybrush/htmleditor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/guybrush/htmleditor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/guybrush/htmleditor/git/refs{/sha}","trees_url":"https://api.github.com/repos/guybrush/htmleditor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/guybrush/htmleditor/statuses/{sha}","languages_url":"https://api.github.com/repos/guybrush/htmleditor/languages","stargazers_url":"https://api.github.com/repos/guybrush/htmleditor/stargazers","contributors_url":"https://api.github.com/repos/guybrush/htmleditor/contributors","subscribers_url":"https://api.github.com/repos/guybrush/htmleditor/subscribers","subscription_url":"https://api.github.com/repos/guybrush/htmleditor/subscription","commits_url":"https://api.github.com/repos/guybrush/htmleditor/commits{/sha}","git_commits_url":"https://api.github.com/repos/guybrush/htmleditor/git/commits{/sha}","comments_url":"https://api.github.com/repos/guybrush/htmleditor/comments{/number}","issue_comment_url":"https://api.github.com/repos/guybrush/htmleditor/issues/comments{/number}","contents_url":"https://api.github.com/repos/guybrush/htmleditor/contents/{+path}","compare_url":"https://api.github.com/repos/guybrush/htmleditor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/guybrush/htmleditor/merges","archive_url":"https://api.github.com/repos/guybrush/htmleditor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/guybrush/htmleditor/downloads","issues_url":"https://api.github.com/repos/guybrush/htmleditor/issues{/number}","pulls_url":"https://api.github.com/repos/guybrush/htmleditor/pulls{/number}","milestones_url":"https://api.github.com/repos/guybrush/htmleditor/milestones{/number}","notifications_url":"https://api.github.com/repos/guybrush/htmleditor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/guybrush/htmleditor/labels{/name}","releases_url":"https://api.github.com/repos/guybrush/htmleditor/releases{/id}","deployments_url":"https://api.github.com/repos/guybrush/htmleditor/deployments","created_at":"2016-04-27T11:46:15Z","updated_at":"2016-04-29T03:42:50Z","pushed_at":"2016-04-27T11:51:30Z","git_url":"git://github.com/guybrush/htmleditor.git","ssh_url":"git@github.com:guybrush/htmleditor.git","clone_url":"https://github.com/guybrush/htmleditor.git","svn_url":"https://github.com/guybrush/htmleditor","homepage":"https://guybrush.github.io/htmleditor","size":502,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mrdoob:master","ref":"master","sha":"516307e0b22c5508a496ca6e72563eada996a11b","user":{"login":"mrdoob","id":97088,"avatar_url":"https://avatars.githubusercontent.com/u/97088?v=3","gravatar_id":"","url":"https://api.github.com/users/mrdoob","html_url":"https://github.com/mrdoob","followers_url":"https://api.github.com/users/mrdoob/followers","following_url":"https://api.github.com/users/mrdoob/following{/other_user}","gists_url":"https://api.github.com/users/mrdoob/gists{/gist_id}","starred_url":"https://api.github.com/users/mrdoob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrdoob/subscriptions","organizations_url":"https://api.github.com/users/mrdoob/orgs","repos_url":"https://api.github.com/users/mrdoob/repos","events_url":"https://api.github.com/users/mrdoob/events{/privacy}","received_events_url":"https://api.github.com/users/mrdoob/received_events","type":"User","site_admin":false},"repo":{"id":5651849,"name":"htmleditor","full_name":"mrdoob/htmleditor","owner":{"login":"mrdoob","id":97088,"avatar_url":"https://avatars.githubusercontent.com/u/97088?v=3","gravatar_id":"","url":"https://api.github.com/users/mrdoob","html_url":"https://github.com/mrdoob","followers_url":"https://api.github.com/users/mrdoob/followers","following_url":"https://api.github.com/users/mrdoob/following{/other_user}","gists_url":"https://api.github.com/users/mrdoob/gists{/gist_id}","starred_url":"https://api.github.com/users/mrdoob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrdoob/subscriptions","organizations_url":"https://api.github.com/users/mrdoob/orgs","repos_url":"https://api.github.com/users/mrdoob/repos","events_url":"https://api.github.com/users/mrdoob/events{/privacy}","received_events_url":"https://api.github.com/users/mrdoob/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mrdoob/htmleditor","description":"Simple editor for messing around.","fork":false,"url":"https://api.github.com/repos/mrdoob/htmleditor","forks_url":"https://api.github.com/repos/mrdoob/htmleditor/forks","keys_url":"https://api.github.com/repos/mrdoob/htmleditor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mrdoob/htmleditor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mrdoob/htmleditor/teams","hooks_url":"https://api.github.com/repos/mrdoob/htmleditor/hooks","issue_events_url":"https://api.github.com/repos/mrdoob/htmleditor/issues/events{/number}","events_url":"https://api.github.com/repos/mrdoob/htmleditor/events","assignees_url":"https://api.github.com/repos/mrdoob/htmleditor/assignees{/user}","branches_url":"https://api.github.com/repos/mrdoob/htmleditor/branches{/branch}","tags_url":"https://api.github.com/repos/mrdoob/htmleditor/tags","blobs_url":"https://api.github.com/repos/mrdoob/htmleditor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mrdoob/htmleditor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mrdoob/htmleditor/git/refs{/sha}","trees_url":"https://api.github.com/repos/mrdoob/htmleditor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mrdoob/htmleditor/statuses/{sha}","languages_url":"https://api.github.com/repos/mrdoob/htmleditor/languages","stargazers_url":"https://api.github.com/repos/mrdoob/htmleditor/stargazers","contributors_url":"https://api.github.com/repos/mrdoob/htmleditor/contributors","subscribers_url":"https://api.github.com/repos/mrdoob/htmleditor/subscribers","subscription_url":"https://api.github.com/repos/mrdoob/htmleditor/subscription","commits_url":"https://api.github.com/repos/mrdoob/htmleditor/commits{/sha}","git_commits_url":"https://api.github.com/repos/mrdoob/htmleditor/git/commits{/sha}","comments_url":"https://api.github.com/repos/mrdoob/htmleditor/comments{/number}","issue_comment_url":"https://api.github.com/repos/mrdoob/htmleditor/issues/comments{/number}","contents_url":"https://api.github.com/repos/mrdoob/htmleditor/contents/{+path}","compare_url":"https://api.github.com/repos/mrdoob/htmleditor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mrdoob/htmleditor/merges","archive_url":"https://api.github.com/repos/mrdoob/htmleditor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mrdoob/htmleditor/downloads","issues_url":"https://api.github.com/repos/mrdoob/htmleditor/issues{/number}","pulls_url":"https://api.github.com/repos/mrdoob/htmleditor/pulls{/number}","milestones_url":"https://api.github.com/repos/mrdoob/htmleditor/milestones{/number}","notifications_url":"https://api.github.com/repos/mrdoob/htmleditor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mrdoob/htmleditor/labels{/name}","releases_url":"https://api.github.com/repos/mrdoob/htmleditor/releases{/id}","deployments_url":"https://api.github.com/repos/mrdoob/htmleditor/deployments","created_at":"2012-09-02T21:02:27Z","updated_at":"2016-04-16T16:23:19Z","pushed_at":"2016-05-01T02:39:08Z","git_url":"git://github.com/mrdoob/htmleditor.git","ssh_url":"git@github.com:mrdoob/htmleditor.git","clone_url":"https://github.com/mrdoob/htmleditor.git","svn_url":"https://github.com/mrdoob/htmleditor","homepage":"http://www.mrdoob.com/projects/htmleditor/","size":700,"stargazers_count":319,"watchers_count":319,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":82,"mirror_url":null,"open_issues_count":7,"forks":82,"open_issues":7,"watchers":319,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mrdoob/htmleditor/pulls/14"},"html":{"href":"https://github.com/mrdoob/htmleditor/pull/14"},"issue":{"href":"https://api.github.com/repos/mrdoob/htmleditor/issues/14"},"comments":{"href":"https://api.github.com/repos/mrdoob/htmleditor/issues/14/comments"},"review_comments":{"href":"https://api.github.com/repos/mrdoob/htmleditor/pulls/14/comments"},"review_comment":{"href":"https://api.github.com/repos/mrdoob/htmleditor/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mrdoob/htmleditor/pulls/14/commits"},"statuses":{"href":"https://api.github.com/repos/mrdoob/htmleditor/statuses/98eef9d3eddc9a2152d8f20c34a03edafb9dee57"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"mrdoob","id":97088,"avatar_url":"https://avatars.githubusercontent.com/u/97088?v=3","gravatar_id":"","url":"https://api.github.com/users/mrdoob","html_url":"https://github.com/mrdoob","followers_url":"https://api.github.com/users/mrdoob/followers","following_url":"https://api.github.com/users/mrdoob/following{/other_user}","gists_url":"https://api.github.com/users/mrdoob/gists{/gist_id}","starred_url":"https://api.github.com/users/mrdoob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrdoob/subscriptions","organizations_url":"https://api.github.com/users/mrdoob/orgs","repos_url":"https://api.github.com/users/mrdoob/repos","events_url":"https://api.github.com/users/mrdoob/events{/privacy}","received_events_url":"https://api.github.com/users/mrdoob/received_events","type":"User","site_admin":false},"comments":3,"review_comments":0,"commits":1,"additions":2,"deletions":2,"changed_files":1}}