{"action":"opened","number":21,"pull_request":{"url":"https://api.github.com/repos/instructure-react/react-toggle/pulls/21","id":35283629,"html_url":"https://github.com/instructure-react/react-toggle/pull/21","diff_url":"https://github.com/instructure-react/react-toggle/pull/21.diff","patch_url":"https://github.com/instructure-react/react-toggle/pull/21.patch","issue_url":"https://api.github.com/repos/instructure-react/react-toggle/issues/21","number":21,"state":"open","locked":false,"title":"Support for React 0.13 plus PureRenderMixin and source maps","user":{"login":"jedwards1211","id":1448194,"avatar_url":"https://avatars.githubusercontent.com/u/1448194?v=3","gravatar_id":"","url":"https://api.github.com/users/jedwards1211","html_url":"https://github.com/jedwards1211","followers_url":"https://api.github.com/users/jedwards1211/followers","following_url":"https://api.github.com/users/jedwards1211/following{/other_user}","gists_url":"https://api.github.com/users/jedwards1211/gists{/gist_id}","starred_url":"https://api.github.com/users/jedwards1211/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jedwards1211/subscriptions","organizations_url":"https://api.github.com/users/jedwards1211/orgs","repos_url":"https://api.github.com/users/jedwards1211/repos","events_url":"https://api.github.com/users/jedwards1211/events{/privacy}","received_events_url":"https://api.github.com/users/jedwards1211/received_events","type":"User","site_admin":false},"body":"Here's how I cleaned things up:\r\n* got rid of `isChecked()`, and used `this.state.checked` instead\r\n* initialized `this.state.checked` from `this.props.checked` and `this.props.defaultChecked`\r\n* made `handleClick()` always call `checkbox.click()`\r\n  * once that's done, **if `this.props` doesn't contain `checked`, set `this.state.checked` to `checkbox.checked`\r\n  * (otherwise, nothing should happen unless `this.props.onChanged`","created_at":"2015-05-13T00:11:28Z","updated_at":"2015-05-13T00:11:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/instructure-react/react-toggle/pulls/21/commits","review_comments_url":"https://api.github.com/repos/instructure-react/react-toggle/pulls/21/comments","review_comment_url":"https://api.github.com/repos/instructure-react/react-toggle/pulls/comments{/number}","comments_url":"https://api.github.com/repos/instructure-react/react-toggle/issues/21/comments","statuses_url":"https://api.github.com/repos/instructure-react/react-toggle/statuses/d859d2708d32365142e34dc1e72e72374733cffb","head":{"label":"jedwards1211:master","ref":"master","sha":"d859d2708d32365142e34dc1e72e72374733cffb","user":{"login":"jedwards1211","id":1448194,"avatar_url":"https://avatars.githubusercontent.com/u/1448194?v=3","gravatar_id":"","url":"https://api.github.com/users/jedwards1211","html_url":"https://github.com/jedwards1211","followers_url":"https://api.github.com/users/jedwards1211/followers","following_url":"https://api.github.com/users/jedwards1211/following{/other_user}","gists_url":"https://api.github.com/users/jedwards1211/gists{/gist_id}","starred_url":"https://api.github.com/users/jedwards1211/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jedwards1211/subscriptions","organizations_url":"https://api.github.com/users/jedwards1211/orgs","repos_url":"https://api.github.com/users/jedwards1211/repos","events_url":"https://api.github.com/users/jedwards1211/events{/privacy}","received_events_url":"https://api.github.com/users/jedwards1211/received_events","type":"User","site_admin":false},"repo":{"id":35514690,"name":"react-toggle","full_name":"jedwards1211/react-toggle","owner":{"login":"jedwards1211","id":1448194,"avatar_url":"https://avatars.githubusercontent.com/u/1448194?v=3","gravatar_id":"","url":"https://api.github.com/users/jedwards1211","html_url":"https://github.com/jedwards1211","followers_url":"https://api.github.com/users/jedwards1211/followers","following_url":"https://api.github.com/users/jedwards1211/following{/other_user}","gists_url":"https://api.github.com/users/jedwards1211/gists{/gist_id}","starred_url":"https://api.github.com/users/jedwards1211/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jedwards1211/subscriptions","organizations_url":"https://api.github.com/users/jedwards1211/orgs","repos_url":"https://api.github.com/users/jedwards1211/repos","events_url":"https://api.github.com/users/jedwards1211/events{/privacy}","received_events_url":"https://api.github.com/users/jedwards1211/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jedwards1211/react-toggle","description":"An elegant, accessible toggle component for React. Also a glorified checkbox.","fork":true,"url":"https://api.github.com/repos/jedwards1211/react-toggle","forks_url":"https://api.github.com/repos/jedwards1211/react-toggle/forks","keys_url":"https://api.github.com/repos/jedwards1211/react-toggle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jedwards1211/react-toggle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jedwards1211/react-toggle/teams","hooks_url":"https://api.github.com/repos/jedwards1211/react-toggle/hooks","issue_events_url":"https://api.github.com/repos/jedwards1211/react-toggle/issues/events{/number}","events_url":"https://api.github.com/repos/jedwards1211/react-toggle/events","assignees_url":"https://api.github.com/repos/jedwards1211/react-toggle/assignees{/user}","branches_url":"https://api.github.com/repos/jedwards1211/react-toggle/branches{/branch}","tags_url":"https://api.github.com/repos/jedwards1211/react-toggle/tags","blobs_url":"https://api.github.com/repos/jedwards1211/react-toggle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jedwards1211/react-toggle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jedwards1211/react-toggle/git/refs{/sha}","trees_url":"https://api.github.com/repos/jedwards1211/react-toggle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jedwards1211/react-toggle/statuses/{sha}","languages_url":"https://api.github.com/repos/jedwards1211/react-toggle/languages","stargazers_url":"https://api.github.com/repos/jedwards1211/react-toggle/stargazers","contributors_url":"https://api.github.com/repos/jedwards1211/react-toggle/contributors","subscribers_url":"https://api.github.com/repos/jedwards1211/react-toggle/subscribers","subscription_url":"https://api.github.com/repos/jedwards1211/react-toggle/subscription","commits_url":"https://api.github.com/repos/jedwards1211/react-toggle/commits{/sha}","git_commits_url":"https://api.github.com/repos/jedwards1211/react-toggle/git/commits{/sha}","comments_url":"https://api.github.com/repos/jedwards1211/react-toggle/comments{/number}","issue_comment_url":"https://api.github.com/repos/jedwards1211/react-toggle/issues/comments{/number}","contents_url":"https://api.github.com/repos/jedwards1211/react-toggle/contents/{+path}","compare_url":"https://api.github.com/repos/jedwards1211/react-toggle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jedwards1211/react-toggle/merges","archive_url":"https://api.github.com/repos/jedwards1211/react-toggle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jedwards1211/react-toggle/downloads","issues_url":"https://api.github.com/repos/jedwards1211/react-toggle/issues{/number}","pulls_url":"https://api.github.com/repos/jedwards1211/react-toggle/pulls{/number}","milestones_url":"https://api.github.com/repos/jedwards1211/react-toggle/milestones{/number}","notifications_url":"https://api.github.com/repos/jedwards1211/react-toggle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jedwards1211/react-toggle/labels{/name}","releases_url":"https://api.github.com/repos/jedwards1211/react-toggle/releases{/id}","created_at":"2015-05-12T21:58:51Z","updated_at":"2015-05-12T21:58:52Z","pushed_at":"2015-05-12T23:45:11Z","git_url":"git://github.com/jedwards1211/react-toggle.git","ssh_url":"git@github.com:jedwards1211/react-toggle.git","clone_url":"https://github.com/jedwards1211/react-toggle.git","svn_url":"https://github.com/jedwards1211/react-toggle","homepage":"http://instructure-react.github.io/react-toggle/","size":345,"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":"instructure-react:master","ref":"master","sha":"6c7608c249690d2721568d64a51a773144941781","user":{"login":"instructure-react","id":9934537,"avatar_url":"https://avatars.githubusercontent.com/u/9934537?v=3","gravatar_id":"","url":"https://api.github.com/users/instructure-react","html_url":"https://github.com/instructure-react","followers_url":"https://api.github.com/users/instructure-react/followers","following_url":"https://api.github.com/users/instructure-react/following{/other_user}","gists_url":"https://api.github.com/users/instructure-react/gists{/gist_id}","starred_url":"https://api.github.com/users/instructure-react/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/instructure-react/subscriptions","organizations_url":"https://api.github.com/users/instructure-react/orgs","repos_url":"https://api.github.com/users/instructure-react/repos","events_url":"https://api.github.com/users/instructure-react/events{/privacy}","received_events_url":"https://api.github.com/users/instructure-react/received_events","type":"Organization","site_admin":false},"repo":{"id":32487314,"name":"react-toggle","full_name":"instructure-react/react-toggle","owner":{"login":"instructure-react","id":9934537,"avatar_url":"https://avatars.githubusercontent.com/u/9934537?v=3","gravatar_id":"","url":"https://api.github.com/users/instructure-react","html_url":"https://github.com/instructure-react","followers_url":"https://api.github.com/users/instructure-react/followers","following_url":"https://api.github.com/users/instructure-react/following{/other_user}","gists_url":"https://api.github.com/users/instructure-react/gists{/gist_id}","starred_url":"https://api.github.com/users/instructure-react/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/instructure-react/subscriptions","organizations_url":"https://api.github.com/users/instructure-react/orgs","repos_url":"https://api.github.com/users/instructure-react/repos","events_url":"https://api.github.com/users/instructure-react/events{/privacy}","received_events_url":"https://api.github.com/users/instructure-react/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/instructure-react/react-toggle","description":"An elegant, accessible toggle component for React. Also a glorified checkbox.","fork":false,"url":"https://api.github.com/repos/instructure-react/react-toggle","forks_url":"https://api.github.com/repos/instructure-react/react-toggle/forks","keys_url":"https://api.github.com/repos/instructure-react/react-toggle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/instructure-react/react-toggle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/instructure-react/react-toggle/teams","hooks_url":"https://api.github.com/repos/instructure-react/react-toggle/hooks","issue_events_url":"https://api.github.com/repos/instructure-react/react-toggle/issues/events{/number}","events_url":"https://api.github.com/repos/instructure-react/react-toggle/events","assignees_url":"https://api.github.com/repos/instructure-react/react-toggle/assignees{/user}","branches_url":"https://api.github.com/repos/instructure-react/react-toggle/branches{/branch}","tags_url":"https://api.github.com/repos/instructure-react/react-toggle/tags","blobs_url":"https://api.github.com/repos/instructure-react/react-toggle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/instructure-react/react-toggle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/instructure-react/react-toggle/git/refs{/sha}","trees_url":"https://api.github.com/repos/instructure-react/react-toggle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/instructure-react/react-toggle/statuses/{sha}","languages_url":"https://api.github.com/repos/instructure-react/react-toggle/languages","stargazers_url":"https://api.github.com/repos/instructure-react/react-toggle/stargazers","contributors_url":"https://api.github.com/repos/instructure-react/react-toggle/contributors","subscribers_url":"https://api.github.com/repos/instructure-react/react-toggle/subscribers","subscription_url":"https://api.github.com/repos/instructure-react/react-toggle/subscription","commits_url":"https://api.github.com/repos/instructure-react/react-toggle/commits{/sha}","git_commits_url":"https://api.github.com/repos/instructure-react/react-toggle/git/commits{/sha}","comments_url":"https://api.github.com/repos/instructure-react/react-toggle/comments{/number}","issue_comment_url":"https://api.github.com/repos/instructure-react/react-toggle/issues/comments{/number}","contents_url":"https://api.github.com/repos/instructure-react/react-toggle/contents/{+path}","compare_url":"https://api.github.com/repos/instructure-react/react-toggle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/instructure-react/react-toggle/merges","archive_url":"https://api.github.com/repos/instructure-react/react-toggle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/instructure-react/react-toggle/downloads","issues_url":"https://api.github.com/repos/instructure-react/react-toggle/issues{/number}","pulls_url":"https://api.github.com/repos/instructure-react/react-toggle/pulls{/number}","milestones_url":"https://api.github.com/repos/instructure-react/react-toggle/milestones{/number}","notifications_url":"https://api.github.com/repos/instructure-react/react-toggle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/instructure-react/react-toggle/labels{/name}","releases_url":"https://api.github.com/repos/instructure-react/react-toggle/releases{/id}","created_at":"2015-03-18T22:17:58Z","updated_at":"2015-05-04T08:25:18Z","pushed_at":"2015-05-12T22:06:27Z","git_url":"git://github.com/instructure-react/react-toggle.git","ssh_url":"git@github.com:instructure-react/react-toggle.git","clone_url":"https://github.com/instructure-react/react-toggle.git","svn_url":"https://github.com/instructure-react/react-toggle","homepage":"http://instructure-react.github.io/react-toggle/","size":590,"stargazers_count":121,"watchers_count":121,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":8,"mirror_url":null,"open_issues_count":8,"forks":8,"open_issues":8,"watchers":121,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/instructure-react/react-toggle/pulls/21"},"html":{"href":"https://github.com/instructure-react/react-toggle/pull/21"},"issue":{"href":"https://api.github.com/repos/instructure-react/react-toggle/issues/21"},"comments":{"href":"https://api.github.com/repos/instructure-react/react-toggle/issues/21/comments"},"review_comments":{"href":"https://api.github.com/repos/instructure-react/react-toggle/pulls/21/comments"},"review_comment":{"href":"https://api.github.com/repos/instructure-react/react-toggle/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/instructure-react/react-toggle/pulls/21/commits"},"statuses":{"href":"https://api.github.com/repos/instructure-react/react-toggle/statuses/d859d2708d32365142e34dc1e72e72374733cffb"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":6,"additions":63,"deletions":19,"changed_files":5}}