{"action":"created","comment":{"url":"https://api.github.com/repos/fxos/sharing/pulls/comments/26230328","id":26230328,"diff_hunk":"@@ -45,11 +49,28 @@ export default class MainController extends RoutingController {\n     document.documentElement.classList.remove('loading');\n   }\n \n-  handleBack() {\n+  route() {\n+    super();\n+    setTimeout(() => {\n+      this.view.setHeader(this.activeController.header);\n+      this.view.toggleBackButton(\n+        this.activeController !== this._controllers['']);\n+    });\n+  }\n+\n+  back(e) {\n+    if (e.detail.type !== 'back') {","path":"app/js/controllers/main_controller.js","position":38,"original_position":38,"commit_id":"d9dc76da943e22e10acb5b231b07c6f0794e7593","original_commit_id":"d9dc76da943e22e10acb5b231b07c6f0794e7593","user":{"login":"DouglasSherk","id":1310914,"avatar_url":"https://avatars.githubusercontent.com/u/1310914?v=3","gravatar_id":"","url":"https://api.github.com/users/DouglasSherk","html_url":"https://github.com/DouglasSherk","followers_url":"https://api.github.com/users/DouglasSherk/followers","following_url":"https://api.github.com/users/DouglasSherk/following{/other_user}","gists_url":"https://api.github.com/users/DouglasSherk/gists{/gist_id}","starred_url":"https://api.github.com/users/DouglasSherk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DouglasSherk/subscriptions","organizations_url":"https://api.github.com/users/DouglasSherk/orgs","repos_url":"https://api.github.com/users/DouglasSherk/repos","events_url":"https://api.github.com/users/DouglasSherk/events{/privacy}","received_events_url":"https://api.github.com/users/DouglasSherk/received_events","type":"User","site_admin":false},"body":"This is specific to ```<gaia-header>```. I don't think it belongs in ```RoutingController```. But perhaps we could take a more opinionated stance that every app should use ```<gaia-header>```.","created_at":"2015-03-11T16:47:00Z","updated_at":"2015-03-11T16:47:00Z","html_url":"https://github.com/fxos/sharing/pull/3#discussion_r26230328","pull_request_url":"https://api.github.com/repos/fxos/sharing/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/fxos/sharing/pulls/comments/26230328"},"html":{"href":"https://github.com/fxos/sharing/pull/3#discussion_r26230328"},"pull_request":{"href":"https://api.github.com/repos/fxos/sharing/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/fxos/sharing/pulls/3","id":30901472,"html_url":"https://github.com/fxos/sharing/pull/3","diff_url":"https://github.com/fxos/sharing/pull/3.diff","patch_url":"https://github.com/fxos/sharing/pull/3.patch","issue_url":"https://api.github.com/repos/fxos/sharing/issues/3","number":3,"state":"open","locked":false,"title":"Bug 1128088 - Visual refinements, part 2. r=justindarc","user":{"login":"DouglasSherk","id":1310914,"avatar_url":"https://avatars.githubusercontent.com/u/1310914?v=3","gravatar_id":"","url":"https://api.github.com/users/DouglasSherk","html_url":"https://github.com/DouglasSherk","followers_url":"https://api.github.com/users/DouglasSherk/followers","following_url":"https://api.github.com/users/DouglasSherk/following{/other_user}","gists_url":"https://api.github.com/users/DouglasSherk/gists{/gist_id}","starred_url":"https://api.github.com/users/DouglasSherk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DouglasSherk/subscriptions","organizations_url":"https://api.github.com/users/DouglasSherk/orgs","repos_url":"https://api.github.com/users/DouglasSherk/repos","events_url":"https://api.github.com/users/DouglasSherk/events{/privacy}","received_events_url":"https://api.github.com/users/DouglasSherk/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-03-10T23:02:35Z","updated_at":"2015-03-11T16:47:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ff96abf3b1e16a82572af977fcd2d7fedebaf991","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/fxos/sharing/pulls/3/commits","review_comments_url":"https://api.github.com/repos/fxos/sharing/pulls/3/comments","review_comment_url":"https://api.github.com/repos/fxos/sharing/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fxos/sharing/issues/3/comments","statuses_url":"https://api.github.com/repos/fxos/sharing/statuses/d9dc76da943e22e10acb5b231b07c6f0794e7593","head":{"label":"fxos:1128088-sharing-visual-refinements2","ref":"1128088-sharing-visual-refinements2","sha":"d9dc76da943e22e10acb5b231b07c6f0794e7593","user":{"login":"fxos","id":10078829,"avatar_url":"https://avatars.githubusercontent.com/u/10078829?v=3","gravatar_id":"","url":"https://api.github.com/users/fxos","html_url":"https://github.com/fxos","followers_url":"https://api.github.com/users/fxos/followers","following_url":"https://api.github.com/users/fxos/following{/other_user}","gists_url":"https://api.github.com/users/fxos/gists{/gist_id}","starred_url":"https://api.github.com/users/fxos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fxos/subscriptions","organizations_url":"https://api.github.com/users/fxos/orgs","repos_url":"https://api.github.com/users/fxos/repos","events_url":"https://api.github.com/users/fxos/events{/privacy}","received_events_url":"https://api.github.com/users/fxos/received_events","type":"Organization","site_admin":false},"repo":{"id":29022954,"name":"sharing","full_name":"fxos/sharing","owner":{"login":"fxos","id":10078829,"avatar_url":"https://avatars.githubusercontent.com/u/10078829?v=3","gravatar_id":"","url":"https://api.github.com/users/fxos","html_url":"https://github.com/fxos","followers_url":"https://api.github.com/users/fxos/followers","following_url":"https://api.github.com/users/fxos/following{/other_user}","gists_url":"https://api.github.com/users/fxos/gists{/gist_id}","starred_url":"https://api.github.com/users/fxos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fxos/subscriptions","organizations_url":"https://api.github.com/users/fxos/orgs","repos_url":"https://api.github.com/users/fxos/repos","events_url":"https://api.github.com/users/fxos/events{/privacy}","received_events_url":"https://api.github.com/users/fxos/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fxos/sharing","description":"P2P app and addon sharing","fork":false,"url":"https://api.github.com/repos/fxos/sharing","forks_url":"https://api.github.com/repos/fxos/sharing/forks","keys_url":"https://api.github.com/repos/fxos/sharing/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fxos/sharing/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fxos/sharing/teams","hooks_url":"https://api.github.com/repos/fxos/sharing/hooks","issue_events_url":"https://api.github.com/repos/fxos/sharing/issues/events{/number}","events_url":"https://api.github.com/repos/fxos/sharing/events","assignees_url":"https://api.github.com/repos/fxos/sharing/assignees{/user}","branches_url":"https://api.github.com/repos/fxos/sharing/branches{/branch}","tags_url":"https://api.github.com/repos/fxos/sharing/tags","blobs_url":"https://api.github.com/repos/fxos/sharing/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fxos/sharing/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fxos/sharing/git/refs{/sha}","trees_url":"https://api.github.com/repos/fxos/sharing/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fxos/sharing/statuses/{sha}","languages_url":"https://api.github.com/repos/fxos/sharing/languages","stargazers_url":"https://api.github.com/repos/fxos/sharing/stargazers","contributors_url":"https://api.github.com/repos/fxos/sharing/contributors","subscribers_url":"https://api.github.com/repos/fxos/sharing/subscribers","subscription_url":"https://api.github.com/repos/fxos/sharing/subscription","commits_url":"https://api.github.com/repos/fxos/sharing/commits{/sha}","git_commits_url":"https://api.github.com/repos/fxos/sharing/git/commits{/sha}","comments_url":"https://api.github.com/repos/fxos/sharing/comments{/number}","issue_comment_url":"https://api.github.com/repos/fxos/sharing/issues/comments{/number}","contents_url":"https://api.github.com/repos/fxos/sharing/contents/{+path}","compare_url":"https://api.github.com/repos/fxos/sharing/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fxos/sharing/merges","archive_url":"https://api.github.com/repos/fxos/sharing/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fxos/sharing/downloads","issues_url":"https://api.github.com/repos/fxos/sharing/issues{/number}","pulls_url":"https://api.github.com/repos/fxos/sharing/pulls{/number}","milestones_url":"https://api.github.com/repos/fxos/sharing/milestones{/number}","notifications_url":"https://api.github.com/repos/fxos/sharing/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fxos/sharing/labels{/name}","releases_url":"https://api.github.com/repos/fxos/sharing/releases{/id}","created_at":"2015-01-09T15:52:55Z","updated_at":"2015-03-10T17:04:22Z","pushed_at":"2015-03-11T13:41:41Z","git_url":"git://github.com/fxos/sharing.git","ssh_url":"git@github.com:fxos/sharing.git","clone_url":"https://github.com/fxos/sharing.git","svn_url":"https://github.com/fxos/sharing","homepage":null,"size":1306,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":3,"mirror_url":null,"open_issues_count":2,"forks":3,"open_issues":2,"watchers":5,"default_branch":"master"}},"base":{"label":"fxos:master","ref":"master","sha":"3d2110d26b618fc26c506771d9ded771b9aa77b3","user":{"login":"fxos","id":10078829,"avatar_url":"https://avatars.githubusercontent.com/u/10078829?v=3","gravatar_id":"","url":"https://api.github.com/users/fxos","html_url":"https://github.com/fxos","followers_url":"https://api.github.com/users/fxos/followers","following_url":"https://api.github.com/users/fxos/following{/other_user}","gists_url":"https://api.github.com/users/fxos/gists{/gist_id}","starred_url":"https://api.github.com/users/fxos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fxos/subscriptions","organizations_url":"https://api.github.com/users/fxos/orgs","repos_url":"https://api.github.com/users/fxos/repos","events_url":"https://api.github.com/users/fxos/events{/privacy}","received_events_url":"https://api.github.com/users/fxos/received_events","type":"Organization","site_admin":false},"repo":{"id":29022954,"name":"sharing","full_name":"fxos/sharing","owner":{"login":"fxos","id":10078829,"avatar_url":"https://avatars.githubusercontent.com/u/10078829?v=3","gravatar_id":"","url":"https://api.github.com/users/fxos","html_url":"https://github.com/fxos","followers_url":"https://api.github.com/users/fxos/followers","following_url":"https://api.github.com/users/fxos/following{/other_user}","gists_url":"https://api.github.com/users/fxos/gists{/gist_id}","starred_url":"https://api.github.com/users/fxos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fxos/subscriptions","organizations_url":"https://api.github.com/users/fxos/orgs","repos_url":"https://api.github.com/users/fxos/repos","events_url":"https://api.github.com/users/fxos/events{/privacy}","received_events_url":"https://api.github.com/users/fxos/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fxos/sharing","description":"P2P app and addon sharing","fork":false,"url":"https://api.github.com/repos/fxos/sharing","forks_url":"https://api.github.com/repos/fxos/sharing/forks","keys_url":"https://api.github.com/repos/fxos/sharing/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fxos/sharing/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fxos/sharing/teams","hooks_url":"https://api.github.com/repos/fxos/sharing/hooks","issue_events_url":"https://api.github.com/repos/fxos/sharing/issues/events{/number}","events_url":"https://api.github.com/repos/fxos/sharing/events","assignees_url":"https://api.github.com/repos/fxos/sharing/assignees{/user}","branches_url":"https://api.github.com/repos/fxos/sharing/branches{/branch}","tags_url":"https://api.github.com/repos/fxos/sharing/tags","blobs_url":"https://api.github.com/repos/fxos/sharing/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fxos/sharing/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fxos/sharing/git/refs{/sha}","trees_url":"https://api.github.com/repos/fxos/sharing/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fxos/sharing/statuses/{sha}","languages_url":"https://api.github.com/repos/fxos/sharing/languages","stargazers_url":"https://api.github.com/repos/fxos/sharing/stargazers","contributors_url":"https://api.github.com/repos/fxos/sharing/contributors","subscribers_url":"https://api.github.com/repos/fxos/sharing/subscribers","subscription_url":"https://api.github.com/repos/fxos/sharing/subscription","commits_url":"https://api.github.com/repos/fxos/sharing/commits{/sha}","git_commits_url":"https://api.github.com/repos/fxos/sharing/git/commits{/sha}","comments_url":"https://api.github.com/repos/fxos/sharing/comments{/number}","issue_comment_url":"https://api.github.com/repos/fxos/sharing/issues/comments{/number}","contents_url":"https://api.github.com/repos/fxos/sharing/contents/{+path}","compare_url":"https://api.github.com/repos/fxos/sharing/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fxos/sharing/merges","archive_url":"https://api.github.com/repos/fxos/sharing/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fxos/sharing/downloads","issues_url":"https://api.github.com/repos/fxos/sharing/issues{/number}","pulls_url":"https://api.github.com/repos/fxos/sharing/pulls{/number}","milestones_url":"https://api.github.com/repos/fxos/sharing/milestones{/number}","notifications_url":"https://api.github.com/repos/fxos/sharing/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fxos/sharing/labels{/name}","releases_url":"https://api.github.com/repos/fxos/sharing/releases{/id}","created_at":"2015-01-09T15:52:55Z","updated_at":"2015-03-10T17:04:22Z","pushed_at":"2015-03-11T13:41:41Z","git_url":"git://github.com/fxos/sharing.git","ssh_url":"git@github.com:fxos/sharing.git","clone_url":"https://github.com/fxos/sharing.git","svn_url":"https://github.com/fxos/sharing","homepage":null,"size":1306,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":3,"mirror_url":null,"open_issues_count":2,"forks":3,"open_issues":2,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fxos/sharing/pulls/3"},"html":{"href":"https://github.com/fxos/sharing/pull/3"},"issue":{"href":"https://api.github.com/repos/fxos/sharing/issues/3"},"comments":{"href":"https://api.github.com/repos/fxos/sharing/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/fxos/sharing/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/fxos/sharing/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fxos/sharing/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/fxos/sharing/statuses/d9dc76da943e22e10acb5b231b07c6f0794e7593"}}}}