{"action":"created","comment":{"url":"https://api.github.com/repos/bitpay/copay/pulls/comments/36630607","id":36630607,"diff_hunk":"@@ -140,27 +153,30 @@ angular.module('copayApp.controllers').controller('indexController', function($r\n       }, 300);\n     }\n \n-    if (!self.tab)\n+    if (!self.tab || !$state.is('walletHome'))\n       self.tab = 'walletHome';\n \n-    if (document.getElementById(self.tab)) {\n-      document.getElementById(self.tab).className = 'tab-out tab-view ' + self.tab;\n-      var old = document.getElementById('menu-' + self.tab);\n-      if (old) {\n-        old.className = '';\n+    go.path('walletHome', function() {","path":"src/js/controllers/index.js","position":41,"original_position":41,"commit_id":"53a482c3115967a56db5e6717b7d39a0599ce405","original_commit_id":"53a482c3115967a56db5e6717b7d39a0599ce405","user":{"login":"troggy","id":163447,"avatar_url":"https://avatars.githubusercontent.com/u/163447?v=3","gravatar_id":"","url":"https://api.github.com/users/troggy","html_url":"https://github.com/troggy","followers_url":"https://api.github.com/users/troggy/followers","following_url":"https://api.github.com/users/troggy/following{/other_user}","gists_url":"https://api.github.com/users/troggy/gists{/gist_id}","starred_url":"https://api.github.com/users/troggy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/troggy/subscriptions","organizations_url":"https://api.github.com/users/troggy/orgs","repos_url":"https://api.github.com/users/troggy/repos","events_url":"https://api.github.com/users/troggy/events{/privacy}","received_events_url":"https://api.github.com/users/troggy/received_events","type":"User","site_admin":false},"body":"You probably wanted to ask why I've **added** go.path() ? Exactly for that purpose -- to set state to ``walletHome`` when ``setTab`` is called from other state.","created_at":"2015-08-10T13:35:15Z","updated_at":"2015-08-10T13:35:15Z","html_url":"https://github.com/bitpay/copay/pull/3069#discussion_r36630607","pull_request_url":"https://api.github.com/repos/bitpay/copay/pulls/3069","_links":{"self":{"href":"https://api.github.com/repos/bitpay/copay/pulls/comments/36630607"},"html":{"href":"https://github.com/bitpay/copay/pull/3069#discussion_r36630607"},"pull_request":{"href":"https://api.github.com/repos/bitpay/copay/pulls/3069"}}},"pull_request":{"url":"https://api.github.com/repos/bitpay/copay/pulls/3069","id":41953562,"html_url":"https://github.com/bitpay/copay/pull/3069","diff_url":"https://github.com/bitpay/copay/pull/3069.diff","patch_url":"https://github.com/bitpay/copay/pull/3069.patch","issue_url":"https://api.github.com/repos/bitpay/copay/issues/3069","number":3069,"state":"open","locked":false,"title":"Allow addon menu items to run arbitrary code on click","user":{"login":"troggy","id":163447,"avatar_url":"https://avatars.githubusercontent.com/u/163447?v=3","gravatar_id":"","url":"https://api.github.com/users/troggy","html_url":"https://github.com/troggy","followers_url":"https://api.github.com/users/troggy/followers","following_url":"https://api.github.com/users/troggy/following{/other_user}","gists_url":"https://api.github.com/users/troggy/gists{/gist_id}","starred_url":"https://api.github.com/users/troggy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/troggy/subscriptions","organizations_url":"https://api.github.com/users/troggy/orgs","repos_url":"https://api.github.com/users/troggy/repos","events_url":"https://api.github.com/users/troggy/events{/privacy}","received_events_url":"https://api.github.com/users/troggy/received_events","type":"User","site_admin":false},"body":"This will allow viewless addons or addons having separate view, not only tab view in home contoller.\r\n\r\n[Example](https://github.com/troggy/copay-colored-coins-plugin/commit/179cc7b4f0365743ad97a5f6e66c092d91a9e018#diff-ce1d47e10e38c9c3cede9d6c803b88d3R24)","created_at":"2015-08-08T12:38:57Z","updated_at":"2015-08-10T13:35:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"64c96fd53eb46706c96aded9ef9a9e5302c91dd0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bitpay/copay/pulls/3069/commits","review_comments_url":"https://api.github.com/repos/bitpay/copay/pulls/3069/comments","review_comment_url":"https://api.github.com/repos/bitpay/copay/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bitpay/copay/issues/3069/comments","statuses_url":"https://api.github.com/repos/bitpay/copay/statuses/53a482c3115967a56db5e6717b7d39a0599ce405","head":{"label":"troggy:addon/state","ref":"addon/state","sha":"53a482c3115967a56db5e6717b7d39a0599ce405","user":{"login":"troggy","id":163447,"avatar_url":"https://avatars.githubusercontent.com/u/163447?v=3","gravatar_id":"","url":"https://api.github.com/users/troggy","html_url":"https://github.com/troggy","followers_url":"https://api.github.com/users/troggy/followers","following_url":"https://api.github.com/users/troggy/following{/other_user}","gists_url":"https://api.github.com/users/troggy/gists{/gist_id}","starred_url":"https://api.github.com/users/troggy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/troggy/subscriptions","organizations_url":"https://api.github.com/users/troggy/orgs","repos_url":"https://api.github.com/users/troggy/repos","events_url":"https://api.github.com/users/troggy/events{/privacy}","received_events_url":"https://api.github.com/users/troggy/received_events","type":"User","site_admin":false},"repo":{"id":37111823,"name":"copay","full_name":"troggy/copay","owner":{"login":"troggy","id":163447,"avatar_url":"https://avatars.githubusercontent.com/u/163447?v=3","gravatar_id":"","url":"https://api.github.com/users/troggy","html_url":"https://github.com/troggy","followers_url":"https://api.github.com/users/troggy/followers","following_url":"https://api.github.com/users/troggy/following{/other_user}","gists_url":"https://api.github.com/users/troggy/gists{/gist_id}","starred_url":"https://api.github.com/users/troggy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/troggy/subscriptions","organizations_url":"https://api.github.com/users/troggy/orgs","repos_url":"https://api.github.com/users/troggy/repos","events_url":"https://api.github.com/users/troggy/events{/privacy}","received_events_url":"https://api.github.com/users/troggy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/troggy/copay","description":"A multisignature wallet.","fork":true,"url":"https://api.github.com/repos/troggy/copay","forks_url":"https://api.github.com/repos/troggy/copay/forks","keys_url":"https://api.github.com/repos/troggy/copay/keys{/key_id}","collaborators_url":"https://api.github.com/repos/troggy/copay/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/troggy/copay/teams","hooks_url":"https://api.github.com/repos/troggy/copay/hooks","issue_events_url":"https://api.github.com/repos/troggy/copay/issues/events{/number}","events_url":"https://api.github.com/repos/troggy/copay/events","assignees_url":"https://api.github.com/repos/troggy/copay/assignees{/user}","branches_url":"https://api.github.com/repos/troggy/copay/branches{/branch}","tags_url":"https://api.github.com/repos/troggy/copay/tags","blobs_url":"https://api.github.com/repos/troggy/copay/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/troggy/copay/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/troggy/copay/git/refs{/sha}","trees_url":"https://api.github.com/repos/troggy/copay/git/trees{/sha}","statuses_url":"https://api.github.com/repos/troggy/copay/statuses/{sha}","languages_url":"https://api.github.com/repos/troggy/copay/languages","stargazers_url":"https://api.github.com/repos/troggy/copay/stargazers","contributors_url":"https://api.github.com/repos/troggy/copay/contributors","subscribers_url":"https://api.github.com/repos/troggy/copay/subscribers","subscription_url":"https://api.github.com/repos/troggy/copay/subscription","commits_url":"https://api.github.com/repos/troggy/copay/commits{/sha}","git_commits_url":"https://api.github.com/repos/troggy/copay/git/commits{/sha}","comments_url":"https://api.github.com/repos/troggy/copay/comments{/number}","issue_comment_url":"https://api.github.com/repos/troggy/copay/issues/comments{/number}","contents_url":"https://api.github.com/repos/troggy/copay/contents/{+path}","compare_url":"https://api.github.com/repos/troggy/copay/compare/{base}...{head}","merges_url":"https://api.github.com/repos/troggy/copay/merges","archive_url":"https://api.github.com/repos/troggy/copay/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/troggy/copay/downloads","issues_url":"https://api.github.com/repos/troggy/copay/issues{/number}","pulls_url":"https://api.github.com/repos/troggy/copay/pulls{/number}","milestones_url":"https://api.github.com/repos/troggy/copay/milestones{/number}","notifications_url":"https://api.github.com/repos/troggy/copay/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/troggy/copay/labels{/name}","releases_url":"https://api.github.com/repos/troggy/copay/releases{/id}","created_at":"2015-06-09T05:18:14Z","updated_at":"2015-06-09T05:18:15Z","pushed_at":"2015-08-08T12:29:53Z","git_url":"git://github.com/troggy/copay.git","ssh_url":"git@github.com:troggy/copay.git","clone_url":"https://github.com/troggy/copay.git","svn_url":"https://github.com/troggy/copay","homepage":"http://copay.io","size":93287,"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":"bitpay:master","ref":"master","sha":"eaa1c6950612295e70435cfeff86ec446f9d6bdc","user":{"login":"bitpay","id":2554930,"avatar_url":"https://avatars.githubusercontent.com/u/2554930?v=3","gravatar_id":"","url":"https://api.github.com/users/bitpay","html_url":"https://github.com/bitpay","followers_url":"https://api.github.com/users/bitpay/followers","following_url":"https://api.github.com/users/bitpay/following{/other_user}","gists_url":"https://api.github.com/users/bitpay/gists{/gist_id}","starred_url":"https://api.github.com/users/bitpay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bitpay/subscriptions","organizations_url":"https://api.github.com/users/bitpay/orgs","repos_url":"https://api.github.com/users/bitpay/repos","events_url":"https://api.github.com/users/bitpay/events{/privacy}","received_events_url":"https://api.github.com/users/bitpay/received_events","type":"Organization","site_admin":false},"repo":{"id":18141084,"name":"copay","full_name":"bitpay/copay","owner":{"login":"bitpay","id":2554930,"avatar_url":"https://avatars.githubusercontent.com/u/2554930?v=3","gravatar_id":"","url":"https://api.github.com/users/bitpay","html_url":"https://github.com/bitpay","followers_url":"https://api.github.com/users/bitpay/followers","following_url":"https://api.github.com/users/bitpay/following{/other_user}","gists_url":"https://api.github.com/users/bitpay/gists{/gist_id}","starred_url":"https://api.github.com/users/bitpay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bitpay/subscriptions","organizations_url":"https://api.github.com/users/bitpay/orgs","repos_url":"https://api.github.com/users/bitpay/repos","events_url":"https://api.github.com/users/bitpay/events{/privacy}","received_events_url":"https://api.github.com/users/bitpay/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bitpay/copay","description":"A multisignature wallet.","fork":false,"url":"https://api.github.com/repos/bitpay/copay","forks_url":"https://api.github.com/repos/bitpay/copay/forks","keys_url":"https://api.github.com/repos/bitpay/copay/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bitpay/copay/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bitpay/copay/teams","hooks_url":"https://api.github.com/repos/bitpay/copay/hooks","issue_events_url":"https://api.github.com/repos/bitpay/copay/issues/events{/number}","events_url":"https://api.github.com/repos/bitpay/copay/events","assignees_url":"https://api.github.com/repos/bitpay/copay/assignees{/user}","branches_url":"https://api.github.com/repos/bitpay/copay/branches{/branch}","tags_url":"https://api.github.com/repos/bitpay/copay/tags","blobs_url":"https://api.github.com/repos/bitpay/copay/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bitpay/copay/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bitpay/copay/git/refs{/sha}","trees_url":"https://api.github.com/repos/bitpay/copay/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bitpay/copay/statuses/{sha}","languages_url":"https://api.github.com/repos/bitpay/copay/languages","stargazers_url":"https://api.github.com/repos/bitpay/copay/stargazers","contributors_url":"https://api.github.com/repos/bitpay/copay/contributors","subscribers_url":"https://api.github.com/repos/bitpay/copay/subscribers","subscription_url":"https://api.github.com/repos/bitpay/copay/subscription","commits_url":"https://api.github.com/repos/bitpay/copay/commits{/sha}","git_commits_url":"https://api.github.com/repos/bitpay/copay/git/commits{/sha}","comments_url":"https://api.github.com/repos/bitpay/copay/comments{/number}","issue_comment_url":"https://api.github.com/repos/bitpay/copay/issues/comments{/number}","contents_url":"https://api.github.com/repos/bitpay/copay/contents/{+path}","compare_url":"https://api.github.com/repos/bitpay/copay/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bitpay/copay/merges","archive_url":"https://api.github.com/repos/bitpay/copay/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bitpay/copay/downloads","issues_url":"https://api.github.com/repos/bitpay/copay/issues{/number}","pulls_url":"https://api.github.com/repos/bitpay/copay/pulls{/number}","milestones_url":"https://api.github.com/repos/bitpay/copay/milestones{/number}","notifications_url":"https://api.github.com/repos/bitpay/copay/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bitpay/copay/labels{/name}","releases_url":"https://api.github.com/repos/bitpay/copay/releases{/id}","created_at":"2014-03-26T14:33:07Z","updated_at":"2015-08-09T21:18:46Z","pushed_at":"2015-08-10T13:10:29Z","git_url":"git://github.com/bitpay/copay.git","ssh_url":"git@github.com:bitpay/copay.git","clone_url":"https://github.com/bitpay/copay.git","svn_url":"https://github.com/bitpay/copay","homepage":"http://copay.io","size":105590,"stargazers_count":325,"watchers_count":325,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":149,"mirror_url":null,"open_issues_count":131,"forks":149,"open_issues":131,"watchers":325,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bitpay/copay/pulls/3069"},"html":{"href":"https://github.com/bitpay/copay/pull/3069"},"issue":{"href":"https://api.github.com/repos/bitpay/copay/issues/3069"},"comments":{"href":"https://api.github.com/repos/bitpay/copay/issues/3069/comments"},"review_comments":{"href":"https://api.github.com/repos/bitpay/copay/pulls/3069/comments"},"review_comment":{"href":"https://api.github.com/repos/bitpay/copay/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bitpay/copay/pulls/3069/commits"},"statuses":{"href":"https://api.github.com/repos/bitpay/copay/statuses/53a482c3115967a56db5e6717b7d39a0599ce405"}}}}