{"action":"opened","number":16,"pull_request":{"url":"https://api.github.com/repos/troybetz/react-soundcloud-widget/pulls/16","id":123932992,"html_url":"https://github.com/troybetz/react-soundcloud-widget/pull/16","diff_url":"https://github.com/troybetz/react-soundcloud-widget/pull/16.diff","patch_url":"https://github.com/troybetz/react-soundcloud-widget/pull/16.patch","issue_url":"https://api.github.com/repos/troybetz/react-soundcloud-widget/issues/16","number":16,"state":"open","locked":false,"title":"Fix unbind null and improve error handling","user":{"login":"0x80","id":1193520,"avatar_url":"https://avatars2.githubusercontent.com/u/1193520?v=3","gravatar_id":"","url":"https://api.github.com/users/0x80","html_url":"https://github.com/0x80","followers_url":"https://api.github.com/users/0x80/followers","following_url":"https://api.github.com/users/0x80/following{/other_user}","gists_url":"https://api.github.com/users/0x80/gists{/gist_id}","starred_url":"https://api.github.com/users/0x80/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0x80/subscriptions","organizations_url":"https://api.github.com/users/0x80/orgs","repos_url":"https://api.github.com/users/0x80/repos","events_url":"https://api.github.com/users/0x80/events{/privacy}","received_events_url":"https://api.github.com/users/0x80/received_events","type":"User","site_admin":false},"body":"This PR aims to fix several errors I encountered.\r\n\r\nThe _reloadWidget and _setupWidget were called in the callback function of createWidget, meaning their __this__ is not pointing to the instance of the react class. This was solved with autobinding using arrow functions.\r\n\r\nI noticed other errors occurring where window.SC was not defined somehow, so I've added error handling. \r\n","created_at":"2017-06-05T08:16:27Z","updated_at":"2017-06-05T08:16:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/troybetz/react-soundcloud-widget/pulls/16/commits","review_comments_url":"https://api.github.com/repos/troybetz/react-soundcloud-widget/pulls/16/comments","review_comment_url":"https://api.github.com/repos/troybetz/react-soundcloud-widget/pulls/comments{/number}","comments_url":"https://api.github.com/repos/troybetz/react-soundcloud-widget/issues/16/comments","statuses_url":"https://api.github.com/repos/troybetz/react-soundcloud-widget/statuses/3d63d29f55647562c46e8346fc9fd62cb63a6b5c","head":{"label":"0x80:topic/fix-unbind-null","ref":"topic/fix-unbind-null","sha":"3d63d29f55647562c46e8346fc9fd62cb63a6b5c","user":{"login":"0x80","id":1193520,"avatar_url":"https://avatars2.githubusercontent.com/u/1193520?v=3","gravatar_id":"","url":"https://api.github.com/users/0x80","html_url":"https://github.com/0x80","followers_url":"https://api.github.com/users/0x80/followers","following_url":"https://api.github.com/users/0x80/following{/other_user}","gists_url":"https://api.github.com/users/0x80/gists{/gist_id}","starred_url":"https://api.github.com/users/0x80/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0x80/subscriptions","organizations_url":"https://api.github.com/users/0x80/orgs","repos_url":"https://api.github.com/users/0x80/repos","events_url":"https://api.github.com/users/0x80/events{/privacy}","received_events_url":"https://api.github.com/users/0x80/received_events","type":"User","site_admin":false},"repo":{"id":93163191,"name":"react-soundcloud-widget","full_name":"0x80/react-soundcloud-widget","owner":{"login":"0x80","id":1193520,"avatar_url":"https://avatars2.githubusercontent.com/u/1193520?v=3","gravatar_id":"","url":"https://api.github.com/users/0x80","html_url":"https://github.com/0x80","followers_url":"https://api.github.com/users/0x80/followers","following_url":"https://api.github.com/users/0x80/following{/other_user}","gists_url":"https://api.github.com/users/0x80/gists{/gist_id}","starred_url":"https://api.github.com/users/0x80/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0x80/subscriptions","organizations_url":"https://api.github.com/users/0x80/orgs","repos_url":"https://api.github.com/users/0x80/repos","events_url":"https://api.github.com/users/0x80/events{/privacy}","received_events_url":"https://api.github.com/users/0x80/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/0x80/react-soundcloud-widget","description":"react.js powered SoundCloud player component","fork":true,"url":"https://api.github.com/repos/0x80/react-soundcloud-widget","forks_url":"https://api.github.com/repos/0x80/react-soundcloud-widget/forks","keys_url":"https://api.github.com/repos/0x80/react-soundcloud-widget/keys{/key_id}","collaborators_url":"https://api.github.com/repos/0x80/react-soundcloud-widget/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/0x80/react-soundcloud-widget/teams","hooks_url":"https://api.github.com/repos/0x80/react-soundcloud-widget/hooks","issue_events_url":"https://api.github.com/repos/0x80/react-soundcloud-widget/issues/events{/number}","events_url":"https://api.github.com/repos/0x80/react-soundcloud-widget/events","assignees_url":"https://api.github.com/repos/0x80/react-soundcloud-widget/assignees{/user}","branches_url":"https://api.github.com/repos/0x80/react-soundcloud-widget/branches{/branch}","tags_url":"https://api.github.com/repos/0x80/react-soundcloud-widget/tags","blobs_url":"https://api.github.com/repos/0x80/react-soundcloud-widget/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/0x80/react-soundcloud-widget/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/0x80/react-soundcloud-widget/git/refs{/sha}","trees_url":"https://api.github.com/repos/0x80/react-soundcloud-widget/git/trees{/sha}","statuses_url":"https://api.github.com/repos/0x80/react-soundcloud-widget/statuses/{sha}","languages_url":"https://api.github.com/repos/0x80/react-soundcloud-widget/languages","stargazers_url":"https://api.github.com/repos/0x80/react-soundcloud-widget/stargazers","contributors_url":"https://api.github.com/repos/0x80/react-soundcloud-widget/contributors","subscribers_url":"https://api.github.com/repos/0x80/react-soundcloud-widget/subscribers","subscription_url":"https://api.github.com/repos/0x80/react-soundcloud-widget/subscription","commits_url":"https://api.github.com/repos/0x80/react-soundcloud-widget/commits{/sha}","git_commits_url":"https://api.github.com/repos/0x80/react-soundcloud-widget/git/commits{/sha}","comments_url":"https://api.github.com/repos/0x80/react-soundcloud-widget/comments{/number}","issue_comment_url":"https://api.github.com/repos/0x80/react-soundcloud-widget/issues/comments{/number}","contents_url":"https://api.github.com/repos/0x80/react-soundcloud-widget/contents/{+path}","compare_url":"https://api.github.com/repos/0x80/react-soundcloud-widget/compare/{base}...{head}","merges_url":"https://api.github.com/repos/0x80/react-soundcloud-widget/merges","archive_url":"https://api.github.com/repos/0x80/react-soundcloud-widget/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/0x80/react-soundcloud-widget/downloads","issues_url":"https://api.github.com/repos/0x80/react-soundcloud-widget/issues{/number}","pulls_url":"https://api.github.com/repos/0x80/react-soundcloud-widget/pulls{/number}","milestones_url":"https://api.github.com/repos/0x80/react-soundcloud-widget/milestones{/number}","notifications_url":"https://api.github.com/repos/0x80/react-soundcloud-widget/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/0x80/react-soundcloud-widget/labels{/name}","releases_url":"https://api.github.com/repos/0x80/react-soundcloud-widget/releases{/id}","deployments_url":"https://api.github.com/repos/0x80/react-soundcloud-widget/deployments","created_at":"2017-06-02T12:25:31Z","updated_at":"2017-06-02T12:25:33Z","pushed_at":"2017-06-05T08:11:38Z","git_url":"git://github.com/0x80/react-soundcloud-widget.git","ssh_url":"git@github.com:0x80/react-soundcloud-widget.git","clone_url":"https://github.com/0x80/react-soundcloud-widget.git","svn_url":"https://github.com/0x80/react-soundcloud-widget","homepage":"http://troybetz.github.io/react-soundcloud-widget/  ","size":128,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"troybetz:master","ref":"master","sha":"1d13d55855addbb1b2564a924997c97e113defdf","user":{"login":"troybetz","id":6295938,"avatar_url":"https://avatars1.githubusercontent.com/u/6295938?v=3","gravatar_id":"","url":"https://api.github.com/users/troybetz","html_url":"https://github.com/troybetz","followers_url":"https://api.github.com/users/troybetz/followers","following_url":"https://api.github.com/users/troybetz/following{/other_user}","gists_url":"https://api.github.com/users/troybetz/gists{/gist_id}","starred_url":"https://api.github.com/users/troybetz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/troybetz/subscriptions","organizations_url":"https://api.github.com/users/troybetz/orgs","repos_url":"https://api.github.com/users/troybetz/repos","events_url":"https://api.github.com/users/troybetz/events{/privacy}","received_events_url":"https://api.github.com/users/troybetz/received_events","type":"User","site_admin":false},"repo":{"id":22322758,"name":"react-soundcloud-widget","full_name":"troybetz/react-soundcloud-widget","owner":{"login":"troybetz","id":6295938,"avatar_url":"https://avatars1.githubusercontent.com/u/6295938?v=3","gravatar_id":"","url":"https://api.github.com/users/troybetz","html_url":"https://github.com/troybetz","followers_url":"https://api.github.com/users/troybetz/followers","following_url":"https://api.github.com/users/troybetz/following{/other_user}","gists_url":"https://api.github.com/users/troybetz/gists{/gist_id}","starred_url":"https://api.github.com/users/troybetz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/troybetz/subscriptions","organizations_url":"https://api.github.com/users/troybetz/orgs","repos_url":"https://api.github.com/users/troybetz/repos","events_url":"https://api.github.com/users/troybetz/events{/privacy}","received_events_url":"https://api.github.com/users/troybetz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/troybetz/react-soundcloud-widget","description":"react.js powered SoundCloud player component","fork":false,"url":"https://api.github.com/repos/troybetz/react-soundcloud-widget","forks_url":"https://api.github.com/repos/troybetz/react-soundcloud-widget/forks","keys_url":"https://api.github.com/repos/troybetz/react-soundcloud-widget/keys{/key_id}","collaborators_url":"https://api.github.com/repos/troybetz/react-soundcloud-widget/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/troybetz/react-soundcloud-widget/teams","hooks_url":"https://api.github.com/repos/troybetz/react-soundcloud-widget/hooks","issue_events_url":"https://api.github.com/repos/troybetz/react-soundcloud-widget/issues/events{/number}","events_url":"https://api.github.com/repos/troybetz/react-soundcloud-widget/events","assignees_url":"https://api.github.com/repos/troybetz/react-soundcloud-widget/assignees{/user}","branches_url":"https://api.github.com/repos/troybetz/react-soundcloud-widget/branches{/branch}","tags_url":"https://api.github.com/repos/troybetz/react-soundcloud-widget/tags","blobs_url":"https://api.github.com/repos/troybetz/react-soundcloud-widget/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/troybetz/react-soundcloud-widget/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/troybetz/react-soundcloud-widget/git/refs{/sha}","trees_url":"https://api.github.com/repos/troybetz/react-soundcloud-widget/git/trees{/sha}","statuses_url":"https://api.github.com/repos/troybetz/react-soundcloud-widget/statuses/{sha}","languages_url":"https://api.github.com/repos/troybetz/react-soundcloud-widget/languages","stargazers_url":"https://api.github.com/repos/troybetz/react-soundcloud-widget/stargazers","contributors_url":"https://api.github.com/repos/troybetz/react-soundcloud-widget/contributors","subscribers_url":"https://api.github.com/repos/troybetz/react-soundcloud-widget/subscribers","subscription_url":"https://api.github.com/repos/troybetz/react-soundcloud-widget/subscription","commits_url":"https://api.github.com/repos/troybetz/react-soundcloud-widget/commits{/sha}","git_commits_url":"https://api.github.com/repos/troybetz/react-soundcloud-widget/git/commits{/sha}","comments_url":"https://api.github.com/repos/troybetz/react-soundcloud-widget/comments{/number}","issue_comment_url":"https://api.github.com/repos/troybetz/react-soundcloud-widget/issues/comments{/number}","contents_url":"https://api.github.com/repos/troybetz/react-soundcloud-widget/contents/{+path}","compare_url":"https://api.github.com/repos/troybetz/react-soundcloud-widget/compare/{base}...{head}","merges_url":"https://api.github.com/repos/troybetz/react-soundcloud-widget/merges","archive_url":"https://api.github.com/repos/troybetz/react-soundcloud-widget/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/troybetz/react-soundcloud-widget/downloads","issues_url":"https://api.github.com/repos/troybetz/react-soundcloud-widget/issues{/number}","pulls_url":"https://api.github.com/repos/troybetz/react-soundcloud-widget/pulls{/number}","milestones_url":"https://api.github.com/repos/troybetz/react-soundcloud-widget/milestones{/number}","notifications_url":"https://api.github.com/repos/troybetz/react-soundcloud-widget/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/troybetz/react-soundcloud-widget/labels{/name}","releases_url":"https://api.github.com/repos/troybetz/react-soundcloud-widget/releases{/id}","deployments_url":"https://api.github.com/repos/troybetz/react-soundcloud-widget/deployments","created_at":"2014-07-27T21:29:23Z","updated_at":"2017-05-25T21:46:56Z","pushed_at":"2017-02-03T15:40:40Z","git_url":"git://github.com/troybetz/react-soundcloud-widget.git","ssh_url":"git@github.com:troybetz/react-soundcloud-widget.git","clone_url":"https://github.com/troybetz/react-soundcloud-widget.git","svn_url":"https://github.com/troybetz/react-soundcloud-widget","homepage":"http://troybetz.github.io/react-soundcloud-widget/  ","size":128,"stargazers_count":26,"watchers_count":26,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":6,"mirror_url":null,"open_issues_count":7,"forks":6,"open_issues":7,"watchers":26,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/troybetz/react-soundcloud-widget/pulls/16"},"html":{"href":"https://github.com/troybetz/react-soundcloud-widget/pull/16"},"issue":{"href":"https://api.github.com/repos/troybetz/react-soundcloud-widget/issues/16"},"comments":{"href":"https://api.github.com/repos/troybetz/react-soundcloud-widget/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/troybetz/react-soundcloud-widget/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/troybetz/react-soundcloud-widget/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/troybetz/react-soundcloud-widget/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/troybetz/react-soundcloud-widget/statuses/3d63d29f55647562c46e8346fc9fd62cb63a6b5c"}},"merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":2,"additions":14,"deletions":5,"changed_files":2}}
{"actor":{"display_login":"0x80"}}