{"action":"created","comment":{"url":"https://api.github.com/repos/humphd/brackets/pulls/comments/31977671","id":31977671,"diff_hunk":"@@ -352,16 +291,15 @@ define(function (require, exports, module) {\n             // Set initial theme\n             Theme.setTheme(data.theme);\n \n-            window.removeEventListener(\"message\", _getInitialDocument);\n-\n-            window.addEventListener(\"message\", _buttonListener);\n+            window.removeEventListener(\"message\", _getInitialDocument, false);\n+            window.addEventListener(\"message\", RemoteCommandHandler.handleRequest, false);\n \n             var fileHTML = FileSystem.getFileForPath(\"/index.html\");\n             var fileCSS  = FileSystem.getFileForPath(\"/style.css\");\n             var fileJS   = FileSystem.getFileForPath(\"/script.js\");\n \n             // Write the HTML file and block on it being done.\n-            fileHTML.write(data.source ? data.source : defaultHTML,\n+            fileHTML.write(data.source ? data.source : defaultHTML, {blind: true},","path":"src/extensions/default/bramble/main.js","position":117,"original_position":117,"commit_id":"d30429f6594005e10706f51965d5092e11d2eaa4","original_commit_id":"d30429f6594005e10706f51965d5092e11d2eaa4","user":{"login":"sedge","id":1616860,"avatar_url":"https://avatars.githubusercontent.com/u/1616860?v=3","gravatar_id":"","url":"https://api.github.com/users/sedge","html_url":"https://github.com/sedge","followers_url":"https://api.github.com/users/sedge/followers","following_url":"https://api.github.com/users/sedge/following{/other_user}","gists_url":"https://api.github.com/users/sedge/gists{/gist_id}","starred_url":"https://api.github.com/users/sedge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sedge/subscriptions","organizations_url":"https://api.github.com/users/sedge/orgs","repos_url":"https://api.github.com/users/sedge/repos","events_url":"https://api.github.com/users/sedge/events{/privacy}","received_events_url":"https://api.github.com/users/sedge/received_events","type":"User","site_admin":false},"body":"I struggled to find docs for this option. Can I assume it forces the write?","created_at":"2015-06-09T02:01:07Z","updated_at":"2015-06-09T02:01:07Z","html_url":"https://github.com/humphd/brackets/pull/344#discussion_r31977671","pull_request_url":"https://api.github.com/repos/humphd/brackets/pulls/344","_links":{"self":{"href":"https://api.github.com/repos/humphd/brackets/pulls/comments/31977671"},"html":{"href":"https://github.com/humphd/brackets/pull/344#discussion_r31977671"},"pull_request":{"href":"https://api.github.com/repos/humphd/brackets/pulls/344"}}},"pull_request":{"url":"https://api.github.com/repos/humphd/brackets/pulls/344","id":36879768,"html_url":"https://github.com/humphd/brackets/pull/344","diff_url":"https://github.com/humphd/brackets/pull/344.diff","patch_url":"https://github.com/humphd/brackets/pull/344.patch","issue_url":"https://api.github.com/repos/humphd/brackets/issues/344","number":344,"state":"open","locked":false,"title":"Issue243 standalone","user":{"login":"humphd","id":427398,"avatar_url":"https://avatars.githubusercontent.com/u/427398?v=3","gravatar_id":"","url":"https://api.github.com/users/humphd","html_url":"https://github.com/humphd","followers_url":"https://api.github.com/users/humphd/followers","following_url":"https://api.github.com/users/humphd/following{/other_user}","gists_url":"https://api.github.com/users/humphd/gists{/gist_id}","starred_url":"https://api.github.com/users/humphd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/humphd/subscriptions","organizations_url":"https://api.github.com/users/humphd/orgs","repos_url":"https://api.github.com/users/humphd/repos","events_url":"https://api.github.com/users/humphd/events{/privacy}","received_events_url":"https://api.github.com/users/humphd/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-03T21:24:42Z","updated_at":"2015-06-09T02:01:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"543b64841fef243b90f30fa921b74a685327f09d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/humphd/brackets/pulls/344/commits","review_comments_url":"https://api.github.com/repos/humphd/brackets/pulls/344/comments","review_comment_url":"https://api.github.com/repos/humphd/brackets/pulls/comments{/number}","comments_url":"https://api.github.com/repos/humphd/brackets/issues/344/comments","statuses_url":"https://api.github.com/repos/humphd/brackets/statuses/d30429f6594005e10706f51965d5092e11d2eaa4","head":{"label":"humphd:issue243-standalone","ref":"issue243-standalone","sha":"d30429f6594005e10706f51965d5092e11d2eaa4","user":{"login":"humphd","id":427398,"avatar_url":"https://avatars.githubusercontent.com/u/427398?v=3","gravatar_id":"","url":"https://api.github.com/users/humphd","html_url":"https://github.com/humphd","followers_url":"https://api.github.com/users/humphd/followers","following_url":"https://api.github.com/users/humphd/following{/other_user}","gists_url":"https://api.github.com/users/humphd/gists{/gist_id}","starred_url":"https://api.github.com/users/humphd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/humphd/subscriptions","organizations_url":"https://api.github.com/users/humphd/orgs","repos_url":"https://api.github.com/users/humphd/repos","events_url":"https://api.github.com/users/humphd/events{/privacy}","received_events_url":"https://api.github.com/users/humphd/received_events","type":"User","site_admin":false},"repo":{"id":13729434,"name":"brackets","full_name":"humphd/brackets","owner":{"login":"humphd","id":427398,"avatar_url":"https://avatars.githubusercontent.com/u/427398?v=3","gravatar_id":"","url":"https://api.github.com/users/humphd","html_url":"https://github.com/humphd","followers_url":"https://api.github.com/users/humphd/followers","following_url":"https://api.github.com/users/humphd/following{/other_user}","gists_url":"https://api.github.com/users/humphd/gists{/gist_id}","starred_url":"https://api.github.com/users/humphd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/humphd/subscriptions","organizations_url":"https://api.github.com/users/humphd/orgs","repos_url":"https://api.github.com/users/humphd/repos","events_url":"https://api.github.com/users/humphd/events{/privacy}","received_events_url":"https://api.github.com/users/humphd/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/humphd/brackets","description":"An open source code editor for the web, written in JavaScript, HTML and CSS.","fork":true,"url":"https://api.github.com/repos/humphd/brackets","forks_url":"https://api.github.com/repos/humphd/brackets/forks","keys_url":"https://api.github.com/repos/humphd/brackets/keys{/key_id}","collaborators_url":"https://api.github.com/repos/humphd/brackets/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/humphd/brackets/teams","hooks_url":"https://api.github.com/repos/humphd/brackets/hooks","issue_events_url":"https://api.github.com/repos/humphd/brackets/issues/events{/number}","events_url":"https://api.github.com/repos/humphd/brackets/events","assignees_url":"https://api.github.com/repos/humphd/brackets/assignees{/user}","branches_url":"https://api.github.com/repos/humphd/brackets/branches{/branch}","tags_url":"https://api.github.com/repos/humphd/brackets/tags","blobs_url":"https://api.github.com/repos/humphd/brackets/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/humphd/brackets/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/humphd/brackets/git/refs{/sha}","trees_url":"https://api.github.com/repos/humphd/brackets/git/trees{/sha}","statuses_url":"https://api.github.com/repos/humphd/brackets/statuses/{sha}","languages_url":"https://api.github.com/repos/humphd/brackets/languages","stargazers_url":"https://api.github.com/repos/humphd/brackets/stargazers","contributors_url":"https://api.github.com/repos/humphd/brackets/contributors","subscribers_url":"https://api.github.com/repos/humphd/brackets/subscribers","subscription_url":"https://api.github.com/repos/humphd/brackets/subscription","commits_url":"https://api.github.com/repos/humphd/brackets/commits{/sha}","git_commits_url":"https://api.github.com/repos/humphd/brackets/git/commits{/sha}","comments_url":"https://api.github.com/repos/humphd/brackets/comments{/number}","issue_comment_url":"https://api.github.com/repos/humphd/brackets/issues/comments{/number}","contents_url":"https://api.github.com/repos/humphd/brackets/contents/{+path}","compare_url":"https://api.github.com/repos/humphd/brackets/compare/{base}...{head}","merges_url":"https://api.github.com/repos/humphd/brackets/merges","archive_url":"https://api.github.com/repos/humphd/brackets/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/humphd/brackets/downloads","issues_url":"https://api.github.com/repos/humphd/brackets/issues{/number}","pulls_url":"https://api.github.com/repos/humphd/brackets/pulls{/number}","milestones_url":"https://api.github.com/repos/humphd/brackets/milestones{/number}","notifications_url":"https://api.github.com/repos/humphd/brackets/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/humphd/brackets/labels{/name}","releases_url":"https://api.github.com/repos/humphd/brackets/releases{/id}","created_at":"2013-10-21T00:12:49Z","updated_at":"2015-05-22T21:04:48Z","pushed_at":"2015-06-08T21:00:53Z","git_url":"git://github.com/humphd/brackets.git","ssh_url":"git@github.com:humphd/brackets.git","clone_url":"https://github.com/humphd/brackets.git","svn_url":"https://github.com/humphd/brackets","homepage":"http://brackets.io","size":85328,"stargazers_count":11,"watchers_count":11,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":13,"mirror_url":null,"open_issues_count":32,"forks":13,"open_issues":32,"watchers":11,"default_branch":"bramble"}},"base":{"label":"humphd:standalone","ref":"standalone","sha":"0a566ee9b9eeea85fa298bc49aae66957ec918a6","user":{"login":"humphd","id":427398,"avatar_url":"https://avatars.githubusercontent.com/u/427398?v=3","gravatar_id":"","url":"https://api.github.com/users/humphd","html_url":"https://github.com/humphd","followers_url":"https://api.github.com/users/humphd/followers","following_url":"https://api.github.com/users/humphd/following{/other_user}","gists_url":"https://api.github.com/users/humphd/gists{/gist_id}","starred_url":"https://api.github.com/users/humphd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/humphd/subscriptions","organizations_url":"https://api.github.com/users/humphd/orgs","repos_url":"https://api.github.com/users/humphd/repos","events_url":"https://api.github.com/users/humphd/events{/privacy}","received_events_url":"https://api.github.com/users/humphd/received_events","type":"User","site_admin":false},"repo":{"id":13729434,"name":"brackets","full_name":"humphd/brackets","owner":{"login":"humphd","id":427398,"avatar_url":"https://avatars.githubusercontent.com/u/427398?v=3","gravatar_id":"","url":"https://api.github.com/users/humphd","html_url":"https://github.com/humphd","followers_url":"https://api.github.com/users/humphd/followers","following_url":"https://api.github.com/users/humphd/following{/other_user}","gists_url":"https://api.github.com/users/humphd/gists{/gist_id}","starred_url":"https://api.github.com/users/humphd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/humphd/subscriptions","organizations_url":"https://api.github.com/users/humphd/orgs","repos_url":"https://api.github.com/users/humphd/repos","events_url":"https://api.github.com/users/humphd/events{/privacy}","received_events_url":"https://api.github.com/users/humphd/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/humphd/brackets","description":"An open source code editor for the web, written in JavaScript, HTML and CSS.","fork":true,"url":"https://api.github.com/repos/humphd/brackets","forks_url":"https://api.github.com/repos/humphd/brackets/forks","keys_url":"https://api.github.com/repos/humphd/brackets/keys{/key_id}","collaborators_url":"https://api.github.com/repos/humphd/brackets/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/humphd/brackets/teams","hooks_url":"https://api.github.com/repos/humphd/brackets/hooks","issue_events_url":"https://api.github.com/repos/humphd/brackets/issues/events{/number}","events_url":"https://api.github.com/repos/humphd/brackets/events","assignees_url":"https://api.github.com/repos/humphd/brackets/assignees{/user}","branches_url":"https://api.github.com/repos/humphd/brackets/branches{/branch}","tags_url":"https://api.github.com/repos/humphd/brackets/tags","blobs_url":"https://api.github.com/repos/humphd/brackets/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/humphd/brackets/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/humphd/brackets/git/refs{/sha}","trees_url":"https://api.github.com/repos/humphd/brackets/git/trees{/sha}","statuses_url":"https://api.github.com/repos/humphd/brackets/statuses/{sha}","languages_url":"https://api.github.com/repos/humphd/brackets/languages","stargazers_url":"https://api.github.com/repos/humphd/brackets/stargazers","contributors_url":"https://api.github.com/repos/humphd/brackets/contributors","subscribers_url":"https://api.github.com/repos/humphd/brackets/subscribers","subscription_url":"https://api.github.com/repos/humphd/brackets/subscription","commits_url":"https://api.github.com/repos/humphd/brackets/commits{/sha}","git_commits_url":"https://api.github.com/repos/humphd/brackets/git/commits{/sha}","comments_url":"https://api.github.com/repos/humphd/brackets/comments{/number}","issue_comment_url":"https://api.github.com/repos/humphd/brackets/issues/comments{/number}","contents_url":"https://api.github.com/repos/humphd/brackets/contents/{+path}","compare_url":"https://api.github.com/repos/humphd/brackets/compare/{base}...{head}","merges_url":"https://api.github.com/repos/humphd/brackets/merges","archive_url":"https://api.github.com/repos/humphd/brackets/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/humphd/brackets/downloads","issues_url":"https://api.github.com/repos/humphd/brackets/issues{/number}","pulls_url":"https://api.github.com/repos/humphd/brackets/pulls{/number}","milestones_url":"https://api.github.com/repos/humphd/brackets/milestones{/number}","notifications_url":"https://api.github.com/repos/humphd/brackets/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/humphd/brackets/labels{/name}","releases_url":"https://api.github.com/repos/humphd/brackets/releases{/id}","created_at":"2013-10-21T00:12:49Z","updated_at":"2015-05-22T21:04:48Z","pushed_at":"2015-06-08T21:00:53Z","git_url":"git://github.com/humphd/brackets.git","ssh_url":"git@github.com:humphd/brackets.git","clone_url":"https://github.com/humphd/brackets.git","svn_url":"https://github.com/humphd/brackets","homepage":"http://brackets.io","size":85328,"stargazers_count":11,"watchers_count":11,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":13,"mirror_url":null,"open_issues_count":32,"forks":13,"open_issues":32,"watchers":11,"default_branch":"bramble"}},"_links":{"self":{"href":"https://api.github.com/repos/humphd/brackets/pulls/344"},"html":{"href":"https://github.com/humphd/brackets/pull/344"},"issue":{"href":"https://api.github.com/repos/humphd/brackets/issues/344"},"comments":{"href":"https://api.github.com/repos/humphd/brackets/issues/344/comments"},"review_comments":{"href":"https://api.github.com/repos/humphd/brackets/pulls/344/comments"},"review_comment":{"href":"https://api.github.com/repos/humphd/brackets/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/humphd/brackets/pulls/344/commits"},"statuses":{"href":"https://api.github.com/repos/humphd/brackets/statuses/d30429f6594005e10706f51965d5092e11d2eaa4"}}}}