{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/comments/41050172","id":41050172,"diff_hunk":"@@ -8,13 +8,34 @@ var LanguageManager = {\n   init: function init() {\n     this.buildLanguageList();\n     document.getElementById('languages').addEventListener('change', this);\n-    this.settings.addObserver('language.current',\n-      function updateDefaultLayouts(event) {\n-        // the 2nd parameter is to reset the current enabled layouts\n-        KeyboardHelper.changeDefaultLayouts(event.settingValue, true);\n-      });\n     window.addEventListener('localized',","path":"apps/ftu/js/language.js","position":9,"original_position":9,"commit_id":"cff73d8fa4baa396474db7c2a1a87fc6045bb5a0","original_commit_id":"cff73d8fa4baa396474db7c2a1a87fc6045bb5a0","user":{"login":"sfoster","id":97747,"avatar_url":"https://avatars.githubusercontent.com/u/97747?v=3","gravatar_id":"","url":"https://api.github.com/users/sfoster","html_url":"https://github.com/sfoster","followers_url":"https://api.github.com/users/sfoster/followers","following_url":"https://api.github.com/users/sfoster/following{/other_user}","gists_url":"https://api.github.com/users/sfoster/gists{/gist_id}","starred_url":"https://api.github.com/users/sfoster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sfoster/subscriptions","organizations_url":"https://api.github.com/users/sfoster/orgs","repos_url":"https://api.github.com/users/sfoster/repos","events_url":"https://api.github.com/users/sfoster/events{/privacy}","received_events_url":"https://api.github.com/users/sfoster/received_events","type":"User","site_admin":false},"body":"Nit: if we're going to uninit, lets remove the localized and change event listeners in uninit too","created_at":"2015-10-02T18:10:36Z","updated_at":"2015-10-02T18:10:36Z","html_url":"https://github.com/mozilla-b2g/gaia/pull/32111#discussion_r41050172","pull_request_url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/32111","_links":{"self":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/comments/41050172"},"html":{"href":"https://github.com/mozilla-b2g/gaia/pull/32111#discussion_r41050172"},"pull_request":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/32111"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/32111","id":46313299,"html_url":"https://github.com/mozilla-b2g/gaia/pull/32111","diff_url":"https://github.com/mozilla-b2g/gaia/pull/32111.diff","patch_url":"https://github.com/mozilla-b2g/gaia/pull/32111.patch","issue_url":"https://api.github.com/repos/mozilla-b2g/gaia/issues/32111","number":32111,"state":"open","locked":false,"title":"Bug 1209050 - Only expose languages with voices when screen reader is…","user":{"login":"eeejay","id":5764,"avatar_url":"https://avatars.githubusercontent.com/u/5764?v=3","gravatar_id":"","url":"https://api.github.com/users/eeejay","html_url":"https://github.com/eeejay","followers_url":"https://api.github.com/users/eeejay/followers","following_url":"https://api.github.com/users/eeejay/following{/other_user}","gists_url":"https://api.github.com/users/eeejay/gists{/gist_id}","starred_url":"https://api.github.com/users/eeejay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eeejay/subscriptions","organizations_url":"https://api.github.com/users/eeejay/orgs","repos_url":"https://api.github.com/users/eeejay/repos","events_url":"https://api.github.com/users/eeejay/events{/privacy}","received_events_url":"https://api.github.com/users/eeejay/received_events","type":"User","site_admin":false},"body":"… enabled.","created_at":"2015-09-29T18:25:05Z","updated_at":"2015-10-02T18:10:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8d63fa3b18cb8926ad28726054419e6544d31801","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/32111/commits","review_comments_url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/32111/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/32111/comments","statuses_url":"https://api.github.com/repos/mozilla-b2g/gaia/statuses/cff73d8fa4baa396474db7c2a1a87fc6045bb5a0","head":{"label":"eeejay:bug-1209050","ref":"bug-1209050","sha":"cff73d8fa4baa396474db7c2a1a87fc6045bb5a0","user":{"login":"eeejay","id":5764,"avatar_url":"https://avatars.githubusercontent.com/u/5764?v=3","gravatar_id":"","url":"https://api.github.com/users/eeejay","html_url":"https://github.com/eeejay","followers_url":"https://api.github.com/users/eeejay/followers","following_url":"https://api.github.com/users/eeejay/following{/other_user}","gists_url":"https://api.github.com/users/eeejay/gists{/gist_id}","starred_url":"https://api.github.com/users/eeejay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eeejay/subscriptions","organizations_url":"https://api.github.com/users/eeejay/orgs","repos_url":"https://api.github.com/users/eeejay/repos","events_url":"https://api.github.com/users/eeejay/events{/privacy}","received_events_url":"https://api.github.com/users/eeejay/received_events","type":"User","site_admin":false},"repo":{"id":3765303,"name":"gaia","full_name":"eeejay/gaia","owner":{"login":"eeejay","id":5764,"avatar_url":"https://avatars.githubusercontent.com/u/5764?v=3","gravatar_id":"","url":"https://api.github.com/users/eeejay","html_url":"https://github.com/eeejay","followers_url":"https://api.github.com/users/eeejay/followers","following_url":"https://api.github.com/users/eeejay/following{/other_user}","gists_url":"https://api.github.com/users/eeejay/gists{/gist_id}","starred_url":"https://api.github.com/users/eeejay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eeejay/subscriptions","organizations_url":"https://api.github.com/users/eeejay/orgs","repos_url":"https://api.github.com/users/eeejay/repos","events_url":"https://api.github.com/users/eeejay/events{/privacy}","received_events_url":"https://api.github.com/users/eeejay/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/eeejay/gaia","description":"Gaia is a HTML5-based Phone UI for the Boot 2 Gecko Project","fork":true,"url":"https://api.github.com/repos/eeejay/gaia","forks_url":"https://api.github.com/repos/eeejay/gaia/forks","keys_url":"https://api.github.com/repos/eeejay/gaia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eeejay/gaia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eeejay/gaia/teams","hooks_url":"https://api.github.com/repos/eeejay/gaia/hooks","issue_events_url":"https://api.github.com/repos/eeejay/gaia/issues/events{/number}","events_url":"https://api.github.com/repos/eeejay/gaia/events","assignees_url":"https://api.github.com/repos/eeejay/gaia/assignees{/user}","branches_url":"https://api.github.com/repos/eeejay/gaia/branches{/branch}","tags_url":"https://api.github.com/repos/eeejay/gaia/tags","blobs_url":"https://api.github.com/repos/eeejay/gaia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eeejay/gaia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eeejay/gaia/git/refs{/sha}","trees_url":"https://api.github.com/repos/eeejay/gaia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eeejay/gaia/statuses/{sha}","languages_url":"https://api.github.com/repos/eeejay/gaia/languages","stargazers_url":"https://api.github.com/repos/eeejay/gaia/stargazers","contributors_url":"https://api.github.com/repos/eeejay/gaia/contributors","subscribers_url":"https://api.github.com/repos/eeejay/gaia/subscribers","subscription_url":"https://api.github.com/repos/eeejay/gaia/subscription","commits_url":"https://api.github.com/repos/eeejay/gaia/commits{/sha}","git_commits_url":"https://api.github.com/repos/eeejay/gaia/git/commits{/sha}","comments_url":"https://api.github.com/repos/eeejay/gaia/comments{/number}","issue_comment_url":"https://api.github.com/repos/eeejay/gaia/issues/comments{/number}","contents_url":"https://api.github.com/repos/eeejay/gaia/contents/{+path}","compare_url":"https://api.github.com/repos/eeejay/gaia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eeejay/gaia/merges","archive_url":"https://api.github.com/repos/eeejay/gaia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eeejay/gaia/downloads","issues_url":"https://api.github.com/repos/eeejay/gaia/issues{/number}","pulls_url":"https://api.github.com/repos/eeejay/gaia/pulls{/number}","milestones_url":"https://api.github.com/repos/eeejay/gaia/milestones{/number}","notifications_url":"https://api.github.com/repos/eeejay/gaia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eeejay/gaia/labels{/name}","releases_url":"https://api.github.com/repos/eeejay/gaia/releases{/id}","created_at":"2012-03-19T15:33:12Z","updated_at":"2015-04-09T00:00:32Z","pushed_at":"2015-10-02T17:47:59Z","git_url":"git://github.com/eeejay/gaia.git","ssh_url":"git@github.com:eeejay/gaia.git","clone_url":"https://github.com/eeejay/gaia.git","svn_url":"https://github.com/eeejay/gaia","homepage":"https://wiki.mozilla.org/B2G","size":920625,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"mozilla-b2g:master","ref":"master","sha":"9d2df35cb1addc0bdb81c1c886240a6817a74781","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-09-30T17:27:53Z","pushed_at":"2015-10-02T17:49:25Z","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":1644406,"stargazers_count":1987,"watchers_count":1987,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":2449,"mirror_url":null,"open_issues_count":1219,"forks":2449,"open_issues":1219,"watchers":1987,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/32111"},"html":{"href":"https://github.com/mozilla-b2g/gaia/pull/32111"},"issue":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/issues/32111"},"comments":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/issues/32111/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/32111/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/32111/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/statuses/cff73d8fa4baa396474db7c2a1a87fc6045bb5a0"}}}}