{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/comments/30026701","id":30026701,"diff_hunk":"@@ -235,5 +316,20 @@\n     this.instanceID = this.app.instanceID + '_' + this.name;\n   };\n \n+  /**\n+   * Send MozContentEvent to control the audio chanenl in System app.\n+   *\n+   * @param {Object} obj The arguments for passing to Gecko.\n+   * @param {Object} obj.type The operation for the audio channel.\n+   * @param {Object} obj.name The audio channel name you want to control.\n+   * @param {Object} obj.volume The volume you want to set.\n+   */\n+  AudioChannelController.prototype._sendContentEvent = function(obj) {\n+    var event = document.createEvent('CustomEvent');","path":"apps/system/js/audio_channel_controller.js","position":232,"original_position":232,"commit_id":"f0fc49728a9b463280853485ec0ba90fe5e51821","original_commit_id":"f0fc49728a9b463280853485ec0ba90fe5e51821","user":{"login":"alivedise","id":546519,"avatar_url":"https://avatars.githubusercontent.com/u/546519?v=3","gravatar_id":"","url":"https://api.github.com/users/alivedise","html_url":"https://github.com/alivedise","followers_url":"https://api.github.com/users/alivedise/followers","following_url":"https://api.github.com/users/alivedise/following{/other_user}","gists_url":"https://api.github.com/users/alivedise/gists{/gist_id}","starred_url":"https://api.github.com/users/alivedise/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alivedise/subscriptions","organizations_url":"https://api.github.com/users/alivedise/orgs","repos_url":"https://api.github.com/users/alivedise/repos","events_url":"https://api.github.com/users/alivedise/events{/privacy}","received_events_url":"https://api.github.com/users/alivedise/received_events","type":"User","site_admin":false},"body":"Don't use this pattern. new CustomEvent please","created_at":"2015-05-11T10:10:23Z","updated_at":"2015-05-11T10:10:23Z","html_url":"https://github.com/mozilla-b2g/gaia/pull/29855#discussion_r30026701","pull_request_url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/29855","_links":{"self":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/comments/30026701"},"html":{"href":"https://github.com/mozilla-b2g/gaia/pull/29855#discussion_r30026701"},"pull_request":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/29855"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/29855","id":34625568,"html_url":"https://github.com/mozilla-b2g/gaia/pull/29855","diff_url":"https://github.com/mozilla-b2g/gaia/pull/29855.diff","patch_url":"https://github.com/mozilla-b2g/gaia/pull/29855.patch","issue_url":"https://api.github.com/repos/mozilla-b2g/gaia/issues/29855","number":29855,"state":"open","locked":false,"title":"Bug 1157140 - Add MozChromeEvent and MozContentEvent to control the audio channels in System app r=alive, dkuo","user":{"login":"evanxd","id":3013038,"avatar_url":"https://avatars.githubusercontent.com/u/3013038?v=3","gravatar_id":"","url":"https://api.github.com/users/evanxd","html_url":"https://github.com/evanxd","followers_url":"https://api.github.com/users/evanxd/followers","following_url":"https://api.github.com/users/evanxd/following{/other_user}","gists_url":"https://api.github.com/users/evanxd/gists{/gist_id}","starred_url":"https://api.github.com/users/evanxd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evanxd/subscriptions","organizations_url":"https://api.github.com/users/evanxd/orgs","repos_url":"https://api.github.com/users/evanxd/repos","events_url":"https://api.github.com/users/evanxd/events{/privacy}","received_events_url":"https://api.github.com/users/evanxd/received_events","type":"User","site_admin":false},"body":null,"created_at":"2015-05-04T09:43:53Z","updated_at":"2015-05-11T10:10:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b2e0fbfbb20759cb038a8b823b2fc2d160ca8471","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/29855/commits","review_comments_url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/29855/comments","review_comment_url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mozilla-b2g/gaia/issues/29855/comments","statuses_url":"https://api.github.com/repos/mozilla-b2g/gaia/statuses/f0fc49728a9b463280853485ec0ba90fe5e51821","head":{"label":"evanxd:bug-1157140","ref":"bug-1157140","sha":"f0fc49728a9b463280853485ec0ba90fe5e51821","user":{"login":"evanxd","id":3013038,"avatar_url":"https://avatars.githubusercontent.com/u/3013038?v=3","gravatar_id":"","url":"https://api.github.com/users/evanxd","html_url":"https://github.com/evanxd","followers_url":"https://api.github.com/users/evanxd/followers","following_url":"https://api.github.com/users/evanxd/following{/other_user}","gists_url":"https://api.github.com/users/evanxd/gists{/gist_id}","starred_url":"https://api.github.com/users/evanxd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evanxd/subscriptions","organizations_url":"https://api.github.com/users/evanxd/orgs","repos_url":"https://api.github.com/users/evanxd/repos","events_url":"https://api.github.com/users/evanxd/events{/privacy}","received_events_url":"https://api.github.com/users/evanxd/received_events","type":"User","site_admin":false},"repo":{"id":7496174,"name":"gaia","full_name":"evanxd/gaia","owner":{"login":"evanxd","id":3013038,"avatar_url":"https://avatars.githubusercontent.com/u/3013038?v=3","gravatar_id":"","url":"https://api.github.com/users/evanxd","html_url":"https://github.com/evanxd","followers_url":"https://api.github.com/users/evanxd/followers","following_url":"https://api.github.com/users/evanxd/following{/other_user}","gists_url":"https://api.github.com/users/evanxd/gists{/gist_id}","starred_url":"https://api.github.com/users/evanxd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evanxd/subscriptions","organizations_url":"https://api.github.com/users/evanxd/orgs","repos_url":"https://api.github.com/users/evanxd/repos","events_url":"https://api.github.com/users/evanxd/events{/privacy}","received_events_url":"https://api.github.com/users/evanxd/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/evanxd/gaia","description":"Gaia is a HTML5-based Phone UI for the Boot 2 Gecko Project","fork":true,"url":"https://api.github.com/repos/evanxd/gaia","forks_url":"https://api.github.com/repos/evanxd/gaia/forks","keys_url":"https://api.github.com/repos/evanxd/gaia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/evanxd/gaia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/evanxd/gaia/teams","hooks_url":"https://api.github.com/repos/evanxd/gaia/hooks","issue_events_url":"https://api.github.com/repos/evanxd/gaia/issues/events{/number}","events_url":"https://api.github.com/repos/evanxd/gaia/events","assignees_url":"https://api.github.com/repos/evanxd/gaia/assignees{/user}","branches_url":"https://api.github.com/repos/evanxd/gaia/branches{/branch}","tags_url":"https://api.github.com/repos/evanxd/gaia/tags","blobs_url":"https://api.github.com/repos/evanxd/gaia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/evanxd/gaia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/evanxd/gaia/git/refs{/sha}","trees_url":"https://api.github.com/repos/evanxd/gaia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/evanxd/gaia/statuses/{sha}","languages_url":"https://api.github.com/repos/evanxd/gaia/languages","stargazers_url":"https://api.github.com/repos/evanxd/gaia/stargazers","contributors_url":"https://api.github.com/repos/evanxd/gaia/contributors","subscribers_url":"https://api.github.com/repos/evanxd/gaia/subscribers","subscription_url":"https://api.github.com/repos/evanxd/gaia/subscription","commits_url":"https://api.github.com/repos/evanxd/gaia/commits{/sha}","git_commits_url":"https://api.github.com/repos/evanxd/gaia/git/commits{/sha}","comments_url":"https://api.github.com/repos/evanxd/gaia/comments{/number}","issue_comment_url":"https://api.github.com/repos/evanxd/gaia/issues/comments{/number}","contents_url":"https://api.github.com/repos/evanxd/gaia/contents/{+path}","compare_url":"https://api.github.com/repos/evanxd/gaia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/evanxd/gaia/merges","archive_url":"https://api.github.com/repos/evanxd/gaia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/evanxd/gaia/downloads","issues_url":"https://api.github.com/repos/evanxd/gaia/issues{/number}","pulls_url":"https://api.github.com/repos/evanxd/gaia/pulls{/number}","milestones_url":"https://api.github.com/repos/evanxd/gaia/milestones{/number}","notifications_url":"https://api.github.com/repos/evanxd/gaia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/evanxd/gaia/labels{/name}","releases_url":"https://api.github.com/repos/evanxd/gaia/releases{/id}","created_at":"2013-01-08T05:30:01Z","updated_at":"2015-04-28T08:26:32Z","pushed_at":"2015-05-11T07:40:09Z","git_url":"git://github.com/evanxd/gaia.git","ssh_url":"git@github.com:evanxd/gaia.git","clone_url":"https://github.com/evanxd/gaia.git","svn_url":"https://github.com/evanxd/gaia","homepage":"https://wiki.mozilla.org/B2G","size":906570,"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":12,"forks":0,"open_issues":12,"watchers":0,"default_branch":"master"}},"base":{"label":"mozilla-b2g:master","ref":"master","sha":"3b06584f664746c99eff10d69256838a567c66bc","user":{"login":"mozilla-b2g","id":1261292,"avatar_url":"https://avatars.githubusercontent.com/u/1261292?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla-b2g","html_url":"https://github.com/mozilla-b2g","followers_url":"https://api.github.com/users/mozilla-b2g/followers","following_url":"https://api.github.com/users/mozilla-b2g/following{/other_user}","gists_url":"https://api.github.com/users/mozilla-b2g/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla-b2g/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla-b2g/subscriptions","organizations_url":"https://api.github.com/users/mozilla-b2g/orgs","repos_url":"https://api.github.com/users/mozilla-b2g/repos","events_url":"https://api.github.com/users/mozilla-b2g/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla-b2g/received_events","type":"Organization","site_admin":false},"repo":{"id":2317369,"name":"gaia","full_name":"mozilla-b2g/gaia","owner":{"login":"mozilla-b2g","id":1261292,"avatar_url":"https://avatars.githubusercontent.com/u/1261292?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla-b2g","html_url":"https://github.com/mozilla-b2g","followers_url":"https://api.github.com/users/mozilla-b2g/followers","following_url":"https://api.github.com/users/mozilla-b2g/following{/other_user}","gists_url":"https://api.github.com/users/mozilla-b2g/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla-b2g/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla-b2g/subscriptions","organizations_url":"https://api.github.com/users/mozilla-b2g/orgs","repos_url":"https://api.github.com/users/mozilla-b2g/repos","events_url":"https://api.github.com/users/mozilla-b2g/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla-b2g/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla-b2g/gaia","description":"Gaia is a HTML5-based Phone UI for the Boot 2 Gecko Project. NOTE: For details of what branches are used for what releases, see","fork":false,"url":"https://api.github.com/repos/mozilla-b2g/gaia","forks_url":"https://api.github.com/repos/mozilla-b2g/gaia/forks","keys_url":"https://api.github.com/repos/mozilla-b2g/gaia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla-b2g/gaia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla-b2g/gaia/teams","hooks_url":"https://api.github.com/repos/mozilla-b2g/gaia/hooks","issue_events_url":"https://api.github.com/repos/mozilla-b2g/gaia/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla-b2g/gaia/events","assignees_url":"https://api.github.com/repos/mozilla-b2g/gaia/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla-b2g/gaia/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla-b2g/gaia/tags","blobs_url":"https://api.github.com/repos/mozilla-b2g/gaia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla-b2g/gaia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla-b2g/gaia/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla-b2g/gaia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla-b2g/gaia/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla-b2g/gaia/languages","stargazers_url":"https://api.github.com/repos/mozilla-b2g/gaia/stargazers","contributors_url":"https://api.github.com/repos/mozilla-b2g/gaia/contributors","subscribers_url":"https://api.github.com/repos/mozilla-b2g/gaia/subscribers","subscription_url":"https://api.github.com/repos/mozilla-b2g/gaia/subscription","commits_url":"https://api.github.com/repos/mozilla-b2g/gaia/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla-b2g/gaia/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla-b2g/gaia/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla-b2g/gaia/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozilla-b2g/gaia/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla-b2g/gaia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla-b2g/gaia/merges","archive_url":"https://api.github.com/repos/mozilla-b2g/gaia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla-b2g/gaia/downloads","issues_url":"https://api.github.com/repos/mozilla-b2g/gaia/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla-b2g/gaia/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla-b2g/gaia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla-b2g/gaia/labels{/name}","releases_url":"https://api.github.com/repos/mozilla-b2g/gaia/releases{/id}","created_at":"2011-09-03T01:38:46Z","updated_at":"2015-05-10T04:13:06Z","pushed_at":"2015-05-11T09:53:02Z","git_url":"git://github.com/mozilla-b2g/gaia.git","ssh_url":"git@github.com:mozilla-b2g/gaia.git","clone_url":"https://github.com/mozilla-b2g/gaia.git","svn_url":"https://github.com/mozilla-b2g/gaia","homepage":"https://wiki.mozilla.org/B2G","size":1550777,"stargazers_count":1920,"watchers_count":1920,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2305,"mirror_url":null,"open_issues_count":985,"forks":2305,"open_issues":985,"watchers":1920,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/29855"},"html":{"href":"https://github.com/mozilla-b2g/gaia/pull/29855"},"issue":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/issues/29855"},"comments":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/issues/29855/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/29855/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/29855/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/statuses/f0fc49728a9b463280853485ec0ba90fe5e51821"}}}}