{"action":"created","comment":{"url":"https://api.github.com/repos/reddit/node-widgets/pulls/comments/72152639","id":72152639,"diff_hunk":"@@ -294,15 +294,11 @@ export class _TooltipTarget extends React.Component {\n   }\n \n   render() {\n-    const { inline, type, children } = this.props;\n+    const { children: child } = this.props;\n \n-    if (typeof children === 'array') {\n-      throw new Error('Tooltip target can only have one child');\n-    } else if (typeof children === 'string') {\n-      return <span {...this.makeHandler()}>{ children }</span>;\n-    } else {\n-      return React.cloneElement(children, this.makeHandler());\n-    }\n+    return typeof child === 'string'\n+      ? <span { ...this.makeHandler() }>{ child }</span>\n+      : React.cloneElement(React.Children.only(child), this.makeHandler());","path":"lib/modules/tooltip.js","position":16,"original_position":16,"commit_id":"e24f61404f470c4b2f21c46664d61b60c7239be0","original_commit_id":"e24f61404f470c4b2f21c46664d61b60c7239be0","user":{"login":"nramadas","id":1679892,"avatar_url":"https://avatars.githubusercontent.com/u/1679892?v=3","gravatar_id":"","url":"https://api.github.com/users/nramadas","html_url":"https://github.com/nramadas","followers_url":"https://api.github.com/users/nramadas/followers","following_url":"https://api.github.com/users/nramadas/following{/other_user}","gists_url":"https://api.github.com/users/nramadas/gists{/gist_id}","starred_url":"https://api.github.com/users/nramadas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nramadas/subscriptions","organizations_url":"https://api.github.com/users/nramadas/orgs","repos_url":"https://api.github.com/users/nramadas/repos","events_url":"https://api.github.com/users/nramadas/events{/privacy}","received_events_url":"https://api.github.com/users/nramadas/received_events","type":"User","site_admin":false},"body":"good catch!","created_at":"2016-07-25T21:57:02Z","updated_at":"2016-07-25T21:57:02Z","html_url":"https://github.com/reddit/node-widgets/pull/1#discussion_r72152639","pull_request_url":"https://api.github.com/repos/reddit/node-widgets/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/reddit/node-widgets/pulls/comments/72152639"},"html":{"href":"https://github.com/reddit/node-widgets/pull/1#discussion_r72152639"},"pull_request":{"href":"https://api.github.com/repos/reddit/node-widgets/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/reddit/node-widgets/pulls/1","id":78738607,"html_url":"https://github.com/reddit/node-widgets/pull/1","diff_url":"https://github.com/reddit/node-widgets/pull/1.diff","patch_url":"https://github.com/reddit/node-widgets/pull/1.patch","issue_url":"https://api.github.com/repos/reddit/node-widgets/issues/1","number":1,"state":"open","locked":false,"title":"Add a modal widget","user":{"login":"nramadas","id":1679892,"avatar_url":"https://avatars.githubusercontent.com/u/1679892?v=3","gravatar_id":"","url":"https://api.github.com/users/nramadas","html_url":"https://github.com/nramadas","followers_url":"https://api.github.com/users/nramadas/followers","following_url":"https://api.github.com/users/nramadas/following{/other_user}","gists_url":"https://api.github.com/users/nramadas/gists{/gist_id}","starred_url":"https://api.github.com/users/nramadas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nramadas/subscriptions","organizations_url":"https://api.github.com/users/nramadas/orgs","repos_url":"https://api.github.com/users/nramadas/repos","events_url":"https://api.github.com/users/nramadas/events{/privacy}","received_events_url":"https://api.github.com/users/nramadas/received_events","type":"User","site_admin":false},"body":"Works much in the same way the Tooltips work.\r\n\r\n:eyeglasses: @schwers or @phil303 ","created_at":"2016-07-25T19:36:25Z","updated_at":"2016-07-25T21:57:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ed550e0671151ed34fbc1f55ab7cbb6f0d4397cc","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/reddit/node-widgets/pulls/1/commits","review_comments_url":"https://api.github.com/repos/reddit/node-widgets/pulls/1/comments","review_comment_url":"https://api.github.com/repos/reddit/node-widgets/pulls/comments{/number}","comments_url":"https://api.github.com/repos/reddit/node-widgets/issues/1/comments","statuses_url":"https://api.github.com/repos/reddit/node-widgets/statuses/e24f61404f470c4b2f21c46664d61b60c7239be0","head":{"label":"nramadas:add_modals","ref":"add_modals","sha":"e24f61404f470c4b2f21c46664d61b60c7239be0","user":{"login":"nramadas","id":1679892,"avatar_url":"https://avatars.githubusercontent.com/u/1679892?v=3","gravatar_id":"","url":"https://api.github.com/users/nramadas","html_url":"https://github.com/nramadas","followers_url":"https://api.github.com/users/nramadas/followers","following_url":"https://api.github.com/users/nramadas/following{/other_user}","gists_url":"https://api.github.com/users/nramadas/gists{/gist_id}","starred_url":"https://api.github.com/users/nramadas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nramadas/subscriptions","organizations_url":"https://api.github.com/users/nramadas/orgs","repos_url":"https://api.github.com/users/nramadas/repos","events_url":"https://api.github.com/users/nramadas/events{/privacy}","received_events_url":"https://api.github.com/users/nramadas/received_events","type":"User","site_admin":false},"repo":{"id":64162436,"name":"node-widgets","full_name":"nramadas/node-widgets","owner":{"login":"nramadas","id":1679892,"avatar_url":"https://avatars.githubusercontent.com/u/1679892?v=3","gravatar_id":"","url":"https://api.github.com/users/nramadas","html_url":"https://github.com/nramadas","followers_url":"https://api.github.com/users/nramadas/followers","following_url":"https://api.github.com/users/nramadas/following{/other_user}","gists_url":"https://api.github.com/users/nramadas/gists{/gist_id}","starred_url":"https://api.github.com/users/nramadas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nramadas/subscriptions","organizations_url":"https://api.github.com/users/nramadas/orgs","repos_url":"https://api.github.com/users/nramadas/repos","events_url":"https://api.github.com/users/nramadas/events{/privacy}","received_events_url":"https://api.github.com/users/nramadas/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nramadas/node-widgets","description":"A collection of Reddit specific React components and the Redux actions and reducers to accompany them","fork":true,"url":"https://api.github.com/repos/nramadas/node-widgets","forks_url":"https://api.github.com/repos/nramadas/node-widgets/forks","keys_url":"https://api.github.com/repos/nramadas/node-widgets/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nramadas/node-widgets/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nramadas/node-widgets/teams","hooks_url":"https://api.github.com/repos/nramadas/node-widgets/hooks","issue_events_url":"https://api.github.com/repos/nramadas/node-widgets/issues/events{/number}","events_url":"https://api.github.com/repos/nramadas/node-widgets/events","assignees_url":"https://api.github.com/repos/nramadas/node-widgets/assignees{/user}","branches_url":"https://api.github.com/repos/nramadas/node-widgets/branches{/branch}","tags_url":"https://api.github.com/repos/nramadas/node-widgets/tags","blobs_url":"https://api.github.com/repos/nramadas/node-widgets/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nramadas/node-widgets/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nramadas/node-widgets/git/refs{/sha}","trees_url":"https://api.github.com/repos/nramadas/node-widgets/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nramadas/node-widgets/statuses/{sha}","languages_url":"https://api.github.com/repos/nramadas/node-widgets/languages","stargazers_url":"https://api.github.com/repos/nramadas/node-widgets/stargazers","contributors_url":"https://api.github.com/repos/nramadas/node-widgets/contributors","subscribers_url":"https://api.github.com/repos/nramadas/node-widgets/subscribers","subscription_url":"https://api.github.com/repos/nramadas/node-widgets/subscription","commits_url":"https://api.github.com/repos/nramadas/node-widgets/commits{/sha}","git_commits_url":"https://api.github.com/repos/nramadas/node-widgets/git/commits{/sha}","comments_url":"https://api.github.com/repos/nramadas/node-widgets/comments{/number}","issue_comment_url":"https://api.github.com/repos/nramadas/node-widgets/issues/comments{/number}","contents_url":"https://api.github.com/repos/nramadas/node-widgets/contents/{+path}","compare_url":"https://api.github.com/repos/nramadas/node-widgets/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nramadas/node-widgets/merges","archive_url":"https://api.github.com/repos/nramadas/node-widgets/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nramadas/node-widgets/downloads","issues_url":"https://api.github.com/repos/nramadas/node-widgets/issues{/number}","pulls_url":"https://api.github.com/repos/nramadas/node-widgets/pulls{/number}","milestones_url":"https://api.github.com/repos/nramadas/node-widgets/milestones{/number}","notifications_url":"https://api.github.com/repos/nramadas/node-widgets/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nramadas/node-widgets/labels{/name}","releases_url":"https://api.github.com/repos/nramadas/node-widgets/releases{/id}","deployments_url":"https://api.github.com/repos/nramadas/node-widgets/deployments","created_at":"2016-07-25T19:35:15Z","updated_at":"2016-07-25T19:35:16Z","pushed_at":"2016-07-25T21:47:06Z","git_url":"git://github.com/nramadas/node-widgets.git","ssh_url":"git@github.com:nramadas/node-widgets.git","clone_url":"https://github.com/nramadas/node-widgets.git","svn_url":"https://github.com/nramadas/node-widgets","homepage":"","size":38,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"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":"reddit:master","ref":"master","sha":"a4fb9233a35d18accd5eb5dc4dcff11e09ea8058","user":{"login":"reddit","id":14248,"avatar_url":"https://avatars.githubusercontent.com/u/14248?v=3","gravatar_id":"","url":"https://api.github.com/users/reddit","html_url":"https://github.com/reddit","followers_url":"https://api.github.com/users/reddit/followers","following_url":"https://api.github.com/users/reddit/following{/other_user}","gists_url":"https://api.github.com/users/reddit/gists{/gist_id}","starred_url":"https://api.github.com/users/reddit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reddit/subscriptions","organizations_url":"https://api.github.com/users/reddit/orgs","repos_url":"https://api.github.com/users/reddit/repos","events_url":"https://api.github.com/users/reddit/events{/privacy}","received_events_url":"https://api.github.com/users/reddit/received_events","type":"Organization","site_admin":false},"repo":{"id":57079248,"name":"node-widgets","full_name":"reddit/node-widgets","owner":{"login":"reddit","id":14248,"avatar_url":"https://avatars.githubusercontent.com/u/14248?v=3","gravatar_id":"","url":"https://api.github.com/users/reddit","html_url":"https://github.com/reddit","followers_url":"https://api.github.com/users/reddit/followers","following_url":"https://api.github.com/users/reddit/following{/other_user}","gists_url":"https://api.github.com/users/reddit/gists{/gist_id}","starred_url":"https://api.github.com/users/reddit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reddit/subscriptions","organizations_url":"https://api.github.com/users/reddit/orgs","repos_url":"https://api.github.com/users/reddit/repos","events_url":"https://api.github.com/users/reddit/events{/privacy}","received_events_url":"https://api.github.com/users/reddit/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/reddit/node-widgets","description":"A collection of Reddit specific React components and the Redux actions and reducers to accompany them","fork":false,"url":"https://api.github.com/repos/reddit/node-widgets","forks_url":"https://api.github.com/repos/reddit/node-widgets/forks","keys_url":"https://api.github.com/repos/reddit/node-widgets/keys{/key_id}","collaborators_url":"https://api.github.com/repos/reddit/node-widgets/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/reddit/node-widgets/teams","hooks_url":"https://api.github.com/repos/reddit/node-widgets/hooks","issue_events_url":"https://api.github.com/repos/reddit/node-widgets/issues/events{/number}","events_url":"https://api.github.com/repos/reddit/node-widgets/events","assignees_url":"https://api.github.com/repos/reddit/node-widgets/assignees{/user}","branches_url":"https://api.github.com/repos/reddit/node-widgets/branches{/branch}","tags_url":"https://api.github.com/repos/reddit/node-widgets/tags","blobs_url":"https://api.github.com/repos/reddit/node-widgets/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/reddit/node-widgets/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/reddit/node-widgets/git/refs{/sha}","trees_url":"https://api.github.com/repos/reddit/node-widgets/git/trees{/sha}","statuses_url":"https://api.github.com/repos/reddit/node-widgets/statuses/{sha}","languages_url":"https://api.github.com/repos/reddit/node-widgets/languages","stargazers_url":"https://api.github.com/repos/reddit/node-widgets/stargazers","contributors_url":"https://api.github.com/repos/reddit/node-widgets/contributors","subscribers_url":"https://api.github.com/repos/reddit/node-widgets/subscribers","subscription_url":"https://api.github.com/repos/reddit/node-widgets/subscription","commits_url":"https://api.github.com/repos/reddit/node-widgets/commits{/sha}","git_commits_url":"https://api.github.com/repos/reddit/node-widgets/git/commits{/sha}","comments_url":"https://api.github.com/repos/reddit/node-widgets/comments{/number}","issue_comment_url":"https://api.github.com/repos/reddit/node-widgets/issues/comments{/number}","contents_url":"https://api.github.com/repos/reddit/node-widgets/contents/{+path}","compare_url":"https://api.github.com/repos/reddit/node-widgets/compare/{base}...{head}","merges_url":"https://api.github.com/repos/reddit/node-widgets/merges","archive_url":"https://api.github.com/repos/reddit/node-widgets/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/reddit/node-widgets/downloads","issues_url":"https://api.github.com/repos/reddit/node-widgets/issues{/number}","pulls_url":"https://api.github.com/repos/reddit/node-widgets/pulls{/number}","milestones_url":"https://api.github.com/repos/reddit/node-widgets/milestones{/number}","notifications_url":"https://api.github.com/repos/reddit/node-widgets/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/reddit/node-widgets/labels{/name}","releases_url":"https://api.github.com/repos/reddit/node-widgets/releases{/id}","deployments_url":"https://api.github.com/repos/reddit/node-widgets/deployments","created_at":"2016-04-25T22:00:47Z","updated_at":"2016-07-18T14:53:48Z","pushed_at":"2016-07-25T21:47:06Z","git_url":"git://github.com/reddit/node-widgets.git","ssh_url":"git@github.com:reddit/node-widgets.git","clone_url":"https://github.com/reddit/node-widgets.git","svn_url":"https://github.com/reddit/node-widgets","homepage":"","size":34,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/reddit/node-widgets/pulls/1"},"html":{"href":"https://github.com/reddit/node-widgets/pull/1"},"issue":{"href":"https://api.github.com/repos/reddit/node-widgets/issues/1"},"comments":{"href":"https://api.github.com/repos/reddit/node-widgets/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/reddit/node-widgets/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/reddit/node-widgets/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/reddit/node-widgets/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/reddit/node-widgets/statuses/e24f61404f470c4b2f21c46664d61b60c7239be0"}}}}
{"actor":{"display_login":"nramadas"}}