{"action":"created","comment":{"url":"https://api.github.com/repos/fxbox/app/pulls/comments/62043095","id":62043095,"diff_hunk":"@@ -203,4 +187,33 @@ export default class Settings extends EventDispatcher {\n   get apiVersion() {\n     return API_VERSION;\n   }\n+\n+  clear() {\n+    return new Promise((resolve) => {\n+      this.session = null;\n+      // @todo Remove only the items set here.","path":"app/js/lib/foxbox/settings.js","position":254,"original_position":254,"commit_id":"d3f28ca9fc87c3982eae66e7e4970db282c096d3","original_commit_id":"d3f28ca9fc87c3982eae66e7e4970db282c096d3","user":{"login":"azasypkin","id":1713708,"avatar_url":"https://avatars.githubusercontent.com/u/1713708?v=3","gravatar_id":"","url":"https://api.github.com/users/azasypkin","html_url":"https://github.com/azasypkin","followers_url":"https://api.github.com/users/azasypkin/followers","following_url":"https://api.github.com/users/azasypkin/following{/other_user}","gists_url":"https://api.github.com/users/azasypkin/gists{/gist_id}","starred_url":"https://api.github.com/users/azasypkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azasypkin/subscriptions","organizations_url":"https://api.github.com/users/azasypkin/orgs","repos_url":"https://api.github.com/users/azasypkin/repos","events_url":"https://api.github.com/users/azasypkin/events{/privacy}","received_events_url":"https://api.github.com/users/azasypkin/received_events","type":"User","site_admin":false},"body":"Okay, then will use this approach.","created_at":"2016-05-04T13:59:57Z","updated_at":"2016-05-04T13:59:57Z","html_url":"https://github.com/fxbox/app/pull/141#discussion_r62043095","pull_request_url":"https://api.github.com/repos/fxbox/app/pulls/141","_links":{"self":{"href":"https://api.github.com/repos/fxbox/app/pulls/comments/62043095"},"html":{"href":"https://github.com/fxbox/app/pull/141#discussion_r62043095"},"pull_request":{"href":"https://api.github.com/repos/fxbox/app/pulls/141"}}},"pull_request":{"url":"https://api.github.com/repos/fxbox/app/pulls/141","id":68680711,"html_url":"https://github.com/fxbox/app/pull/141","diff_url":"https://github.com/fxbox/app/pull/141.diff","patch_url":"https://github.com/fxbox/app/pull/141.patch","issue_url":"https://api.github.com/repos/fxbox/app/issues/141","number":141,"state":"open","locked":false,"title":"[WIP] Smart Polling: do not poll when document is not visible, do not poll watch values when no listeners, poll services and watchers only on Home view, do not ping if other request were successful. r=gmarty","user":{"login":"azasypkin","id":1713708,"avatar_url":"https://avatars.githubusercontent.com/u/1713708?v=3","gravatar_id":"","url":"https://api.github.com/users/azasypkin","html_url":"https://github.com/azasypkin","followers_url":"https://api.github.com/users/azasypkin/followers","following_url":"https://api.github.com/users/azasypkin/following{/other_user}","gists_url":"https://api.github.com/users/azasypkin/gists{/gist_id}","starred_url":"https://api.github.com/users/azasypkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azasypkin/subscriptions","organizations_url":"https://api.github.com/users/azasypkin/orgs","repos_url":"https://api.github.com/users/azasypkin/repos","events_url":"https://api.github.com/users/azasypkin/events{/privacy}","received_events_url":"https://api.github.com/users/azasypkin/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-05-03T09:42:39Z","updated_at":"2016-05-04T13:59:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fbd60a80c0d25dadf7e1810363b80674d6b7dff2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/fxbox/app/pulls/141/commits","review_comments_url":"https://api.github.com/repos/fxbox/app/pulls/141/comments","review_comment_url":"https://api.github.com/repos/fxbox/app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fxbox/app/issues/141/comments","statuses_url":"https://api.github.com/repos/fxbox/app/statuses/d3f28ca9fc87c3982eae66e7e4970db282c096d3","head":{"label":"azasypkin:smart-polling","ref":"smart-polling","sha":"d3f28ca9fc87c3982eae66e7e4970db282c096d3","user":{"login":"azasypkin","id":1713708,"avatar_url":"https://avatars.githubusercontent.com/u/1713708?v=3","gravatar_id":"","url":"https://api.github.com/users/azasypkin","html_url":"https://github.com/azasypkin","followers_url":"https://api.github.com/users/azasypkin/followers","following_url":"https://api.github.com/users/azasypkin/following{/other_user}","gists_url":"https://api.github.com/users/azasypkin/gists{/gist_id}","starred_url":"https://api.github.com/users/azasypkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azasypkin/subscriptions","organizations_url":"https://api.github.com/users/azasypkin/orgs","repos_url":"https://api.github.com/users/azasypkin/repos","events_url":"https://api.github.com/users/azasypkin/events{/privacy}","received_events_url":"https://api.github.com/users/azasypkin/received_events","type":"User","site_admin":false},"repo":{"id":53416420,"name":"app","full_name":"azasypkin/app","owner":{"login":"azasypkin","id":1713708,"avatar_url":"https://avatars.githubusercontent.com/u/1713708?v=3","gravatar_id":"","url":"https://api.github.com/users/azasypkin","html_url":"https://github.com/azasypkin","followers_url":"https://api.github.com/users/azasypkin/followers","following_url":"https://api.github.com/users/azasypkin/following{/other_user}","gists_url":"https://api.github.com/users/azasypkin/gists{/gist_id}","starred_url":"https://api.github.com/users/azasypkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azasypkin/subscriptions","organizations_url":"https://api.github.com/users/azasypkin/orgs","repos_url":"https://api.github.com/users/azasypkin/repos","events_url":"https://api.github.com/users/azasypkin/events{/privacy}","received_events_url":"https://api.github.com/users/azasypkin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/azasypkin/app","description":"An app for Project Link","fork":true,"url":"https://api.github.com/repos/azasypkin/app","forks_url":"https://api.github.com/repos/azasypkin/app/forks","keys_url":"https://api.github.com/repos/azasypkin/app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/azasypkin/app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/azasypkin/app/teams","hooks_url":"https://api.github.com/repos/azasypkin/app/hooks","issue_events_url":"https://api.github.com/repos/azasypkin/app/issues/events{/number}","events_url":"https://api.github.com/repos/azasypkin/app/events","assignees_url":"https://api.github.com/repos/azasypkin/app/assignees{/user}","branches_url":"https://api.github.com/repos/azasypkin/app/branches{/branch}","tags_url":"https://api.github.com/repos/azasypkin/app/tags","blobs_url":"https://api.github.com/repos/azasypkin/app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/azasypkin/app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/azasypkin/app/git/refs{/sha}","trees_url":"https://api.github.com/repos/azasypkin/app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/azasypkin/app/statuses/{sha}","languages_url":"https://api.github.com/repos/azasypkin/app/languages","stargazers_url":"https://api.github.com/repos/azasypkin/app/stargazers","contributors_url":"https://api.github.com/repos/azasypkin/app/contributors","subscribers_url":"https://api.github.com/repos/azasypkin/app/subscribers","subscription_url":"https://api.github.com/repos/azasypkin/app/subscription","commits_url":"https://api.github.com/repos/azasypkin/app/commits{/sha}","git_commits_url":"https://api.github.com/repos/azasypkin/app/git/commits{/sha}","comments_url":"https://api.github.com/repos/azasypkin/app/comments{/number}","issue_comment_url":"https://api.github.com/repos/azasypkin/app/issues/comments{/number}","contents_url":"https://api.github.com/repos/azasypkin/app/contents/{+path}","compare_url":"https://api.github.com/repos/azasypkin/app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/azasypkin/app/merges","archive_url":"https://api.github.com/repos/azasypkin/app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/azasypkin/app/downloads","issues_url":"https://api.github.com/repos/azasypkin/app/issues{/number}","pulls_url":"https://api.github.com/repos/azasypkin/app/pulls{/number}","milestones_url":"https://api.github.com/repos/azasypkin/app/milestones{/number}","notifications_url":"https://api.github.com/repos/azasypkin/app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/azasypkin/app/labels{/name}","releases_url":"https://api.github.com/repos/azasypkin/app/releases{/id}","deployments_url":"https://api.github.com/repos/azasypkin/app/deployments","created_at":"2016-03-08T13:59:42Z","updated_at":"2016-03-08T13:59:43Z","pushed_at":"2016-05-04T10:49:56Z","git_url":"git://github.com/azasypkin/app.git","ssh_url":"git@github.com:azasypkin/app.git","clone_url":"https://github.com/azasypkin/app.git","svn_url":"https://github.com/azasypkin/app","homepage":"https://fxbox.github.io/app","size":2030,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"fxbox:master","ref":"master","sha":"1bc949bde506925529513bb8f9058de722ba6894","user":{"login":"fxbox","id":17052474,"avatar_url":"https://avatars.githubusercontent.com/u/17052474?v=3","gravatar_id":"","url":"https://api.github.com/users/fxbox","html_url":"https://github.com/fxbox","followers_url":"https://api.github.com/users/fxbox/followers","following_url":"https://api.github.com/users/fxbox/following{/other_user}","gists_url":"https://api.github.com/users/fxbox/gists{/gist_id}","starred_url":"https://api.github.com/users/fxbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fxbox/subscriptions","organizations_url":"https://api.github.com/users/fxbox/orgs","repos_url":"https://api.github.com/users/fxbox/repos","events_url":"https://api.github.com/users/fxbox/events{/privacy}","received_events_url":"https://api.github.com/users/fxbox/received_events","type":"Organization","site_admin":false},"repo":{"id":51533667,"name":"app","full_name":"fxbox/app","owner":{"login":"fxbox","id":17052474,"avatar_url":"https://avatars.githubusercontent.com/u/17052474?v=3","gravatar_id":"","url":"https://api.github.com/users/fxbox","html_url":"https://github.com/fxbox","followers_url":"https://api.github.com/users/fxbox/followers","following_url":"https://api.github.com/users/fxbox/following{/other_user}","gists_url":"https://api.github.com/users/fxbox/gists{/gist_id}","starred_url":"https://api.github.com/users/fxbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fxbox/subscriptions","organizations_url":"https://api.github.com/users/fxbox/orgs","repos_url":"https://api.github.com/users/fxbox/repos","events_url":"https://api.github.com/users/fxbox/events{/privacy}","received_events_url":"https://api.github.com/users/fxbox/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fxbox/app","description":"An app for Project Link","fork":false,"url":"https://api.github.com/repos/fxbox/app","forks_url":"https://api.github.com/repos/fxbox/app/forks","keys_url":"https://api.github.com/repos/fxbox/app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fxbox/app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fxbox/app/teams","hooks_url":"https://api.github.com/repos/fxbox/app/hooks","issue_events_url":"https://api.github.com/repos/fxbox/app/issues/events{/number}","events_url":"https://api.github.com/repos/fxbox/app/events","assignees_url":"https://api.github.com/repos/fxbox/app/assignees{/user}","branches_url":"https://api.github.com/repos/fxbox/app/branches{/branch}","tags_url":"https://api.github.com/repos/fxbox/app/tags","blobs_url":"https://api.github.com/repos/fxbox/app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fxbox/app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fxbox/app/git/refs{/sha}","trees_url":"https://api.github.com/repos/fxbox/app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fxbox/app/statuses/{sha}","languages_url":"https://api.github.com/repos/fxbox/app/languages","stargazers_url":"https://api.github.com/repos/fxbox/app/stargazers","contributors_url":"https://api.github.com/repos/fxbox/app/contributors","subscribers_url":"https://api.github.com/repos/fxbox/app/subscribers","subscription_url":"https://api.github.com/repos/fxbox/app/subscription","commits_url":"https://api.github.com/repos/fxbox/app/commits{/sha}","git_commits_url":"https://api.github.com/repos/fxbox/app/git/commits{/sha}","comments_url":"https://api.github.com/repos/fxbox/app/comments{/number}","issue_comment_url":"https://api.github.com/repos/fxbox/app/issues/comments{/number}","contents_url":"https://api.github.com/repos/fxbox/app/contents/{+path}","compare_url":"https://api.github.com/repos/fxbox/app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fxbox/app/merges","archive_url":"https://api.github.com/repos/fxbox/app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fxbox/app/downloads","issues_url":"https://api.github.com/repos/fxbox/app/issues{/number}","pulls_url":"https://api.github.com/repos/fxbox/app/pulls{/number}","milestones_url":"https://api.github.com/repos/fxbox/app/milestones{/number}","notifications_url":"https://api.github.com/repos/fxbox/app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fxbox/app/labels{/name}","releases_url":"https://api.github.com/repos/fxbox/app/releases{/id}","deployments_url":"https://api.github.com/repos/fxbox/app/deployments","created_at":"2016-02-11T17:46:54Z","updated_at":"2016-04-25T15:49:20Z","pushed_at":"2016-05-04T10:49:55Z","git_url":"git://github.com/fxbox/app.git","ssh_url":"git@github.com:fxbox/app.git","clone_url":"https://github.com/fxbox/app.git","svn_url":"https://github.com/fxbox/app","homepage":"https://fxbox.github.io/app","size":2080,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":7,"mirror_url":null,"open_issues_count":23,"forks":7,"open_issues":23,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fxbox/app/pulls/141"},"html":{"href":"https://github.com/fxbox/app/pull/141"},"issue":{"href":"https://api.github.com/repos/fxbox/app/issues/141"},"comments":{"href":"https://api.github.com/repos/fxbox/app/issues/141/comments"},"review_comments":{"href":"https://api.github.com/repos/fxbox/app/pulls/141/comments"},"review_comment":{"href":"https://api.github.com/repos/fxbox/app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fxbox/app/pulls/141/commits"},"statuses":{"href":"https://api.github.com/repos/fxbox/app/statuses/d3f28ca9fc87c3982eae66e7e4970db282c096d3"}}}}