{"action":"created","comment":{"url":"https://api.github.com/repos/micnews/deku-tab-control/pulls/comments/64358730","id":64358730,"diff_hunk":"@@ -13,6 +13,12 @@ export function render ({ props, state }, setState) {\n   const { items, onChange, removeOnHide } = props;\n   const { activeTabIndex } = state;\n \n+  if (process.browser) {\n+    window.addEventListener('deku-tab-control:setState', function (e) {\n+      setState({ activeTabIndex: e.detail.activeTab });\n+    });\n+  }","path":"index.js","position":8,"original_position":8,"commit_id":"eaa30f5fb1646b5657fec5a51667afce73594837","original_commit_id":"eaa30f5fb1646b5657fec5a51667afce73594837","user":{"login":"iefserge","id":6034700,"avatar_url":"https://avatars.githubusercontent.com/u/6034700?v=3","gravatar_id":"","url":"https://api.github.com/users/iefserge","html_url":"https://github.com/iefserge","followers_url":"https://api.github.com/users/iefserge/followers","following_url":"https://api.github.com/users/iefserge/following{/other_user}","gists_url":"https://api.github.com/users/iefserge/gists{/gist_id}","starred_url":"https://api.github.com/users/iefserge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iefserge/subscriptions","organizations_url":"https://api.github.com/users/iefserge/orgs","repos_url":"https://api.github.com/users/iefserge/repos","events_url":"https://api.github.com/users/iefserge/events{/privacy}","received_events_url":"https://api.github.com/users/iefserge/received_events","type":"User","site_admin":false},"body":"can `onChange` event property be used instead?","created_at":"2016-05-24T09:35:28Z","updated_at":"2016-05-24T09:35:28Z","html_url":"https://github.com/micnews/deku-tab-control/pull/4#discussion_r64358730","pull_request_url":"https://api.github.com/repos/micnews/deku-tab-control/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/micnews/deku-tab-control/pulls/comments/64358730"},"html":{"href":"https://github.com/micnews/deku-tab-control/pull/4#discussion_r64358730"},"pull_request":{"href":"https://api.github.com/repos/micnews/deku-tab-control/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/micnews/deku-tab-control/pulls/4","id":71105040,"html_url":"https://github.com/micnews/deku-tab-control/pull/4","diff_url":"https://github.com/micnews/deku-tab-control/pull/4.diff","patch_url":"https://github.com/micnews/deku-tab-control/pull/4.patch","issue_url":"https://api.github.com/repos/micnews/deku-tab-control/issues/4","number":4,"state":"open","locked":false,"title":"added event listener","user":{"login":"orrybaram","id":723579,"avatar_url":"https://avatars.githubusercontent.com/u/723579?v=3","gravatar_id":"","url":"https://api.github.com/users/orrybaram","html_url":"https://github.com/orrybaram","followers_url":"https://api.github.com/users/orrybaram/followers","following_url":"https://api.github.com/users/orrybaram/following{/other_user}","gists_url":"https://api.github.com/users/orrybaram/gists{/gist_id}","starred_url":"https://api.github.com/users/orrybaram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orrybaram/subscriptions","organizations_url":"https://api.github.com/users/orrybaram/orgs","repos_url":"https://api.github.com/users/orrybaram/repos","events_url":"https://api.github.com/users/orrybaram/events{/privacy}","received_events_url":"https://api.github.com/users/orrybaram/received_events","type":"User","site_admin":false},"body":"T: patch\r\nR: @sessa \r\n\r\nAdds event listener to update state","created_at":"2016-05-23T19:15:01Z","updated_at":"2016-05-24T09:35:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"58de5e4e29e54caa7f7913c053923a5ba1aa67eb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/micnews/deku-tab-control/pulls/4/commits","review_comments_url":"https://api.github.com/repos/micnews/deku-tab-control/pulls/4/comments","review_comment_url":"https://api.github.com/repos/micnews/deku-tab-control/pulls/comments{/number}","comments_url":"https://api.github.com/repos/micnews/deku-tab-control/issues/4/comments","statuses_url":"https://api.github.com/repos/micnews/deku-tab-control/statuses/eaa30f5fb1646b5657fec5a51667afce73594837","head":{"label":"micnews:state-fix","ref":"state-fix","sha":"eaa30f5fb1646b5657fec5a51667afce73594837","user":{"login":"micnews","id":7944468,"avatar_url":"https://avatars.githubusercontent.com/u/7944468?v=3","gravatar_id":"","url":"https://api.github.com/users/micnews","html_url":"https://github.com/micnews","followers_url":"https://api.github.com/users/micnews/followers","following_url":"https://api.github.com/users/micnews/following{/other_user}","gists_url":"https://api.github.com/users/micnews/gists{/gist_id}","starred_url":"https://api.github.com/users/micnews/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/micnews/subscriptions","organizations_url":"https://api.github.com/users/micnews/orgs","repos_url":"https://api.github.com/users/micnews/repos","events_url":"https://api.github.com/users/micnews/events{/privacy}","received_events_url":"https://api.github.com/users/micnews/received_events","type":"Organization","site_admin":false},"repo":{"id":47331136,"name":"deku-tab-control","full_name":"micnews/deku-tab-control","owner":{"login":"micnews","id":7944468,"avatar_url":"https://avatars.githubusercontent.com/u/7944468?v=3","gravatar_id":"","url":"https://api.github.com/users/micnews","html_url":"https://github.com/micnews","followers_url":"https://api.github.com/users/micnews/followers","following_url":"https://api.github.com/users/micnews/following{/other_user}","gists_url":"https://api.github.com/users/micnews/gists{/gist_id}","starred_url":"https://api.github.com/users/micnews/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/micnews/subscriptions","organizations_url":"https://api.github.com/users/micnews/orgs","repos_url":"https://api.github.com/users/micnews/repos","events_url":"https://api.github.com/users/micnews/events{/privacy}","received_events_url":"https://api.github.com/users/micnews/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/micnews/deku-tab-control","description":"Tab control deku component","fork":false,"url":"https://api.github.com/repos/micnews/deku-tab-control","forks_url":"https://api.github.com/repos/micnews/deku-tab-control/forks","keys_url":"https://api.github.com/repos/micnews/deku-tab-control/keys{/key_id}","collaborators_url":"https://api.github.com/repos/micnews/deku-tab-control/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/micnews/deku-tab-control/teams","hooks_url":"https://api.github.com/repos/micnews/deku-tab-control/hooks","issue_events_url":"https://api.github.com/repos/micnews/deku-tab-control/issues/events{/number}","events_url":"https://api.github.com/repos/micnews/deku-tab-control/events","assignees_url":"https://api.github.com/repos/micnews/deku-tab-control/assignees{/user}","branches_url":"https://api.github.com/repos/micnews/deku-tab-control/branches{/branch}","tags_url":"https://api.github.com/repos/micnews/deku-tab-control/tags","blobs_url":"https://api.github.com/repos/micnews/deku-tab-control/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/micnews/deku-tab-control/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/micnews/deku-tab-control/git/refs{/sha}","trees_url":"https://api.github.com/repos/micnews/deku-tab-control/git/trees{/sha}","statuses_url":"https://api.github.com/repos/micnews/deku-tab-control/statuses/{sha}","languages_url":"https://api.github.com/repos/micnews/deku-tab-control/languages","stargazers_url":"https://api.github.com/repos/micnews/deku-tab-control/stargazers","contributors_url":"https://api.github.com/repos/micnews/deku-tab-control/contributors","subscribers_url":"https://api.github.com/repos/micnews/deku-tab-control/subscribers","subscription_url":"https://api.github.com/repos/micnews/deku-tab-control/subscription","commits_url":"https://api.github.com/repos/micnews/deku-tab-control/commits{/sha}","git_commits_url":"https://api.github.com/repos/micnews/deku-tab-control/git/commits{/sha}","comments_url":"https://api.github.com/repos/micnews/deku-tab-control/comments{/number}","issue_comment_url":"https://api.github.com/repos/micnews/deku-tab-control/issues/comments{/number}","contents_url":"https://api.github.com/repos/micnews/deku-tab-control/contents/{+path}","compare_url":"https://api.github.com/repos/micnews/deku-tab-control/compare/{base}...{head}","merges_url":"https://api.github.com/repos/micnews/deku-tab-control/merges","archive_url":"https://api.github.com/repos/micnews/deku-tab-control/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/micnews/deku-tab-control/downloads","issues_url":"https://api.github.com/repos/micnews/deku-tab-control/issues{/number}","pulls_url":"https://api.github.com/repos/micnews/deku-tab-control/pulls{/number}","milestones_url":"https://api.github.com/repos/micnews/deku-tab-control/milestones{/number}","notifications_url":"https://api.github.com/repos/micnews/deku-tab-control/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/micnews/deku-tab-control/labels{/name}","releases_url":"https://api.github.com/repos/micnews/deku-tab-control/releases{/id}","deployments_url":"https://api.github.com/repos/micnews/deku-tab-control/deployments","created_at":"2015-12-03T12:38:12Z","updated_at":"2016-05-18T17:24:50Z","pushed_at":"2016-05-23T19:15:01Z","git_url":"git://github.com/micnews/deku-tab-control.git","ssh_url":"git@github.com:micnews/deku-tab-control.git","clone_url":"https://github.com/micnews/deku-tab-control.git","svn_url":"https://github.com/micnews/deku-tab-control","homepage":null,"size":12,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":2,"default_branch":"master"}},"base":{"label":"micnews:master","ref":"master","sha":"3409c91858646685809f5bb7ab9401017c066de4","user":{"login":"micnews","id":7944468,"avatar_url":"https://avatars.githubusercontent.com/u/7944468?v=3","gravatar_id":"","url":"https://api.github.com/users/micnews","html_url":"https://github.com/micnews","followers_url":"https://api.github.com/users/micnews/followers","following_url":"https://api.github.com/users/micnews/following{/other_user}","gists_url":"https://api.github.com/users/micnews/gists{/gist_id}","starred_url":"https://api.github.com/users/micnews/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/micnews/subscriptions","organizations_url":"https://api.github.com/users/micnews/orgs","repos_url":"https://api.github.com/users/micnews/repos","events_url":"https://api.github.com/users/micnews/events{/privacy}","received_events_url":"https://api.github.com/users/micnews/received_events","type":"Organization","site_admin":false},"repo":{"id":47331136,"name":"deku-tab-control","full_name":"micnews/deku-tab-control","owner":{"login":"micnews","id":7944468,"avatar_url":"https://avatars.githubusercontent.com/u/7944468?v=3","gravatar_id":"","url":"https://api.github.com/users/micnews","html_url":"https://github.com/micnews","followers_url":"https://api.github.com/users/micnews/followers","following_url":"https://api.github.com/users/micnews/following{/other_user}","gists_url":"https://api.github.com/users/micnews/gists{/gist_id}","starred_url":"https://api.github.com/users/micnews/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/micnews/subscriptions","organizations_url":"https://api.github.com/users/micnews/orgs","repos_url":"https://api.github.com/users/micnews/repos","events_url":"https://api.github.com/users/micnews/events{/privacy}","received_events_url":"https://api.github.com/users/micnews/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/micnews/deku-tab-control","description":"Tab control deku component","fork":false,"url":"https://api.github.com/repos/micnews/deku-tab-control","forks_url":"https://api.github.com/repos/micnews/deku-tab-control/forks","keys_url":"https://api.github.com/repos/micnews/deku-tab-control/keys{/key_id}","collaborators_url":"https://api.github.com/repos/micnews/deku-tab-control/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/micnews/deku-tab-control/teams","hooks_url":"https://api.github.com/repos/micnews/deku-tab-control/hooks","issue_events_url":"https://api.github.com/repos/micnews/deku-tab-control/issues/events{/number}","events_url":"https://api.github.com/repos/micnews/deku-tab-control/events","assignees_url":"https://api.github.com/repos/micnews/deku-tab-control/assignees{/user}","branches_url":"https://api.github.com/repos/micnews/deku-tab-control/branches{/branch}","tags_url":"https://api.github.com/repos/micnews/deku-tab-control/tags","blobs_url":"https://api.github.com/repos/micnews/deku-tab-control/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/micnews/deku-tab-control/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/micnews/deku-tab-control/git/refs{/sha}","trees_url":"https://api.github.com/repos/micnews/deku-tab-control/git/trees{/sha}","statuses_url":"https://api.github.com/repos/micnews/deku-tab-control/statuses/{sha}","languages_url":"https://api.github.com/repos/micnews/deku-tab-control/languages","stargazers_url":"https://api.github.com/repos/micnews/deku-tab-control/stargazers","contributors_url":"https://api.github.com/repos/micnews/deku-tab-control/contributors","subscribers_url":"https://api.github.com/repos/micnews/deku-tab-control/subscribers","subscription_url":"https://api.github.com/repos/micnews/deku-tab-control/subscription","commits_url":"https://api.github.com/repos/micnews/deku-tab-control/commits{/sha}","git_commits_url":"https://api.github.com/repos/micnews/deku-tab-control/git/commits{/sha}","comments_url":"https://api.github.com/repos/micnews/deku-tab-control/comments{/number}","issue_comment_url":"https://api.github.com/repos/micnews/deku-tab-control/issues/comments{/number}","contents_url":"https://api.github.com/repos/micnews/deku-tab-control/contents/{+path}","compare_url":"https://api.github.com/repos/micnews/deku-tab-control/compare/{base}...{head}","merges_url":"https://api.github.com/repos/micnews/deku-tab-control/merges","archive_url":"https://api.github.com/repos/micnews/deku-tab-control/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/micnews/deku-tab-control/downloads","issues_url":"https://api.github.com/repos/micnews/deku-tab-control/issues{/number}","pulls_url":"https://api.github.com/repos/micnews/deku-tab-control/pulls{/number}","milestones_url":"https://api.github.com/repos/micnews/deku-tab-control/milestones{/number}","notifications_url":"https://api.github.com/repos/micnews/deku-tab-control/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/micnews/deku-tab-control/labels{/name}","releases_url":"https://api.github.com/repos/micnews/deku-tab-control/releases{/id}","deployments_url":"https://api.github.com/repos/micnews/deku-tab-control/deployments","created_at":"2015-12-03T12:38:12Z","updated_at":"2016-05-18T17:24:50Z","pushed_at":"2016-05-23T19:15:01Z","git_url":"git://github.com/micnews/deku-tab-control.git","ssh_url":"git@github.com:micnews/deku-tab-control.git","clone_url":"https://github.com/micnews/deku-tab-control.git","svn_url":"https://github.com/micnews/deku-tab-control","homepage":null,"size":12,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/micnews/deku-tab-control/pulls/4"},"html":{"href":"https://github.com/micnews/deku-tab-control/pull/4"},"issue":{"href":"https://api.github.com/repos/micnews/deku-tab-control/issues/4"},"comments":{"href":"https://api.github.com/repos/micnews/deku-tab-control/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/micnews/deku-tab-control/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/micnews/deku-tab-control/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/micnews/deku-tab-control/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/micnews/deku-tab-control/statuses/eaa30f5fb1646b5657fec5a51667afce73594837"}}}}
{"actor":{"display_login":"iefserge"}}