{"action":"created","comment":{"url":"https://api.github.com/repos/andreypopp/react-textarea-autosize/pulls/comments/30392214","id":30392214,"diff_hunk":"@@ -98,10 +98,14 @@ export default class TextareaAutosize extends React.Component {\n \n }\n \n-let onNextFrame = window.requestAnimationFrame;\n+if (process.browser) {","path":"src/TextareaAutosize.js","position":5,"original_position":5,"commit_id":"71597eec774f0ebe91122dfc49515847af9c19cf","original_commit_id":"71597eec774f0ebe91122dfc49515847af9c19cf","user":{"login":"alexfedoseev","id":4244251,"avatar_url":"https://avatars.githubusercontent.com/u/4244251?v=3","gravatar_id":"","url":"https://api.github.com/users/alexfedoseev","html_url":"https://github.com/alexfedoseev","followers_url":"https://api.github.com/users/alexfedoseev/followers","following_url":"https://api.github.com/users/alexfedoseev/following{/other_user}","gists_url":"https://api.github.com/users/alexfedoseev/gists{/gist_id}","starred_url":"https://api.github.com/users/alexfedoseev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexfedoseev/subscriptions","organizations_url":"https://api.github.com/users/alexfedoseev/orgs","repos_url":"https://api.github.com/users/alexfedoseev/repos","events_url":"https://api.github.com/users/alexfedoseev/events{/privacy}","received_events_url":"https://api.github.com/users/alexfedoseev/received_events","type":"User","site_admin":false},"body":"Using it with webpack, works fine.","created_at":"2015-05-15T08:21:43Z","updated_at":"2015-05-15T08:21:43Z","html_url":"https://github.com/andreypopp/react-textarea-autosize/pull/27#discussion_r30392214","pull_request_url":"https://api.github.com/repos/andreypopp/react-textarea-autosize/pulls/27","_links":{"self":{"href":"https://api.github.com/repos/andreypopp/react-textarea-autosize/pulls/comments/30392214"},"html":{"href":"https://github.com/andreypopp/react-textarea-autosize/pull/27#discussion_r30392214"},"pull_request":{"href":"https://api.github.com/repos/andreypopp/react-textarea-autosize/pulls/27"}}},"pull_request":{"url":"https://api.github.com/repos/andreypopp/react-textarea-autosize/pulls/27","id":35492899,"html_url":"https://github.com/andreypopp/react-textarea-autosize/pull/27","diff_url":"https://github.com/andreypopp/react-textarea-autosize/pull/27.diff","patch_url":"https://github.com/andreypopp/react-textarea-autosize/pull/27.patch","issue_url":"https://api.github.com/repos/andreypopp/react-textarea-autosize/issues/27","number":27,"state":"open","locked":false,"title":"Check if we're on server or not","user":{"login":"alexfedoseev","id":4244251,"avatar_url":"https://avatars.githubusercontent.com/u/4244251?v=3","gravatar_id":"","url":"https://api.github.com/users/alexfedoseev","html_url":"https://github.com/alexfedoseev","followers_url":"https://api.github.com/users/alexfedoseev/followers","following_url":"https://api.github.com/users/alexfedoseev/following{/other_user}","gists_url":"https://api.github.com/users/alexfedoseev/gists{/gist_id}","starred_url":"https://api.github.com/users/alexfedoseev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexfedoseev/subscriptions","organizations_url":"https://api.github.com/users/alexfedoseev/orgs","repos_url":"https://api.github.com/users/alexfedoseev/repos","events_url":"https://api.github.com/users/alexfedoseev/events{/privacy}","received_events_url":"https://api.github.com/users/alexfedoseev/received_events","type":"User","site_admin":false},"body":"This check fixes server errors, where `window` is not defined.","created_at":"2015-05-15T08:14:47Z","updated_at":"2015-05-15T08:21:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d3a688fcb030b7220f59464500c99807123e9785","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/andreypopp/react-textarea-autosize/pulls/27/commits","review_comments_url":"https://api.github.com/repos/andreypopp/react-textarea-autosize/pulls/27/comments","review_comment_url":"https://api.github.com/repos/andreypopp/react-textarea-autosize/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andreypopp/react-textarea-autosize/issues/27/comments","statuses_url":"https://api.github.com/repos/andreypopp/react-textarea-autosize/statuses/71597eec774f0ebe91122dfc49515847af9c19cf","head":{"label":"alexfedoseev:master","ref":"master","sha":"71597eec774f0ebe91122dfc49515847af9c19cf","user":{"login":"alexfedoseev","id":4244251,"avatar_url":"https://avatars.githubusercontent.com/u/4244251?v=3","gravatar_id":"","url":"https://api.github.com/users/alexfedoseev","html_url":"https://github.com/alexfedoseev","followers_url":"https://api.github.com/users/alexfedoseev/followers","following_url":"https://api.github.com/users/alexfedoseev/following{/other_user}","gists_url":"https://api.github.com/users/alexfedoseev/gists{/gist_id}","starred_url":"https://api.github.com/users/alexfedoseev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexfedoseev/subscriptions","organizations_url":"https://api.github.com/users/alexfedoseev/orgs","repos_url":"https://api.github.com/users/alexfedoseev/repos","events_url":"https://api.github.com/users/alexfedoseev/events{/privacy}","received_events_url":"https://api.github.com/users/alexfedoseev/received_events","type":"User","site_admin":false},"repo":{"id":35661027,"name":"react-textarea-autosize","full_name":"alexfedoseev/react-textarea-autosize","owner":{"login":"alexfedoseev","id":4244251,"avatar_url":"https://avatars.githubusercontent.com/u/4244251?v=3","gravatar_id":"","url":"https://api.github.com/users/alexfedoseev","html_url":"https://github.com/alexfedoseev","followers_url":"https://api.github.com/users/alexfedoseev/followers","following_url":"https://api.github.com/users/alexfedoseev/following{/other_user}","gists_url":"https://api.github.com/users/alexfedoseev/gists{/gist_id}","starred_url":"https://api.github.com/users/alexfedoseev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexfedoseev/subscriptions","organizations_url":"https://api.github.com/users/alexfedoseev/orgs","repos_url":"https://api.github.com/users/alexfedoseev/repos","events_url":"https://api.github.com/users/alexfedoseev/events{/privacy}","received_events_url":"https://api.github.com/users/alexfedoseev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alexfedoseev/react-textarea-autosize","description":"<textarea /> component for React which grows with content","fork":true,"url":"https://api.github.com/repos/alexfedoseev/react-textarea-autosize","forks_url":"https://api.github.com/repos/alexfedoseev/react-textarea-autosize/forks","keys_url":"https://api.github.com/repos/alexfedoseev/react-textarea-autosize/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alexfedoseev/react-textarea-autosize/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alexfedoseev/react-textarea-autosize/teams","hooks_url":"https://api.github.com/repos/alexfedoseev/react-textarea-autosize/hooks","issue_events_url":"https://api.github.com/repos/alexfedoseev/react-textarea-autosize/issues/events{/number}","events_url":"https://api.github.com/repos/alexfedoseev/react-textarea-autosize/events","assignees_url":"https://api.github.com/repos/alexfedoseev/react-textarea-autosize/assignees{/user}","branches_url":"https://api.github.com/repos/alexfedoseev/react-textarea-autosize/branches{/branch}","tags_url":"https://api.github.com/repos/alexfedoseev/react-textarea-autosize/tags","blobs_url":"https://api.github.com/repos/alexfedoseev/react-textarea-autosize/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alexfedoseev/react-textarea-autosize/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alexfedoseev/react-textarea-autosize/git/refs{/sha}","trees_url":"https://api.github.com/repos/alexfedoseev/react-textarea-autosize/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alexfedoseev/react-textarea-autosize/statuses/{sha}","languages_url":"https://api.github.com/repos/alexfedoseev/react-textarea-autosize/languages","stargazers_url":"https://api.github.com/repos/alexfedoseev/react-textarea-autosize/stargazers","contributors_url":"https://api.github.com/repos/alexfedoseev/react-textarea-autosize/contributors","subscribers_url":"https://api.github.com/repos/alexfedoseev/react-textarea-autosize/subscribers","subscription_url":"https://api.github.com/repos/alexfedoseev/react-textarea-autosize/subscription","commits_url":"https://api.github.com/repos/alexfedoseev/react-textarea-autosize/commits{/sha}","git_commits_url":"https://api.github.com/repos/alexfedoseev/react-textarea-autosize/git/commits{/sha}","comments_url":"https://api.github.com/repos/alexfedoseev/react-textarea-autosize/comments{/number}","issue_comment_url":"https://api.github.com/repos/alexfedoseev/react-textarea-autosize/issues/comments{/number}","contents_url":"https://api.github.com/repos/alexfedoseev/react-textarea-autosize/contents/{+path}","compare_url":"https://api.github.com/repos/alexfedoseev/react-textarea-autosize/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alexfedoseev/react-textarea-autosize/merges","archive_url":"https://api.github.com/repos/alexfedoseev/react-textarea-autosize/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alexfedoseev/react-textarea-autosize/downloads","issues_url":"https://api.github.com/repos/alexfedoseev/react-textarea-autosize/issues{/number}","pulls_url":"https://api.github.com/repos/alexfedoseev/react-textarea-autosize/pulls{/number}","milestones_url":"https://api.github.com/repos/alexfedoseev/react-textarea-autosize/milestones{/number}","notifications_url":"https://api.github.com/repos/alexfedoseev/react-textarea-autosize/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alexfedoseev/react-textarea-autosize/labels{/name}","releases_url":"https://api.github.com/repos/alexfedoseev/react-textarea-autosize/releases{/id}","created_at":"2015-05-15T07:49:07Z","updated_at":"2015-05-15T07:49:07Z","pushed_at":"2015-05-15T08:10:27Z","git_url":"git://github.com/alexfedoseev/react-textarea-autosize.git","ssh_url":"git@github.com:alexfedoseev/react-textarea-autosize.git","clone_url":"https://github.com/alexfedoseev/react-textarea-autosize.git","svn_url":"https://github.com/alexfedoseev/react-textarea-autosize","homepage":"http://andreypopp.github.io/react-textarea-autosize/","size":6850,"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":"andreypopp:master","ref":"master","sha":"63ad5bc9b67f816f3a44a102d59f4957629ba80e","user":{"login":"andreypopp","id":30594,"avatar_url":"https://avatars.githubusercontent.com/u/30594?v=3","gravatar_id":"","url":"https://api.github.com/users/andreypopp","html_url":"https://github.com/andreypopp","followers_url":"https://api.github.com/users/andreypopp/followers","following_url":"https://api.github.com/users/andreypopp/following{/other_user}","gists_url":"https://api.github.com/users/andreypopp/gists{/gist_id}","starred_url":"https://api.github.com/users/andreypopp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreypopp/subscriptions","organizations_url":"https://api.github.com/users/andreypopp/orgs","repos_url":"https://api.github.com/users/andreypopp/repos","events_url":"https://api.github.com/users/andreypopp/events{/privacy}","received_events_url":"https://api.github.com/users/andreypopp/received_events","type":"User","site_admin":false},"repo":{"id":12064766,"name":"react-textarea-autosize","full_name":"andreypopp/react-textarea-autosize","owner":{"login":"andreypopp","id":30594,"avatar_url":"https://avatars.githubusercontent.com/u/30594?v=3","gravatar_id":"","url":"https://api.github.com/users/andreypopp","html_url":"https://github.com/andreypopp","followers_url":"https://api.github.com/users/andreypopp/followers","following_url":"https://api.github.com/users/andreypopp/following{/other_user}","gists_url":"https://api.github.com/users/andreypopp/gists{/gist_id}","starred_url":"https://api.github.com/users/andreypopp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreypopp/subscriptions","organizations_url":"https://api.github.com/users/andreypopp/orgs","repos_url":"https://api.github.com/users/andreypopp/repos","events_url":"https://api.github.com/users/andreypopp/events{/privacy}","received_events_url":"https://api.github.com/users/andreypopp/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andreypopp/react-textarea-autosize","description":"<textarea /> component for React which grows with content","fork":false,"url":"https://api.github.com/repos/andreypopp/react-textarea-autosize","forks_url":"https://api.github.com/repos/andreypopp/react-textarea-autosize/forks","keys_url":"https://api.github.com/repos/andreypopp/react-textarea-autosize/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andreypopp/react-textarea-autosize/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andreypopp/react-textarea-autosize/teams","hooks_url":"https://api.github.com/repos/andreypopp/react-textarea-autosize/hooks","issue_events_url":"https://api.github.com/repos/andreypopp/react-textarea-autosize/issues/events{/number}","events_url":"https://api.github.com/repos/andreypopp/react-textarea-autosize/events","assignees_url":"https://api.github.com/repos/andreypopp/react-textarea-autosize/assignees{/user}","branches_url":"https://api.github.com/repos/andreypopp/react-textarea-autosize/branches{/branch}","tags_url":"https://api.github.com/repos/andreypopp/react-textarea-autosize/tags","blobs_url":"https://api.github.com/repos/andreypopp/react-textarea-autosize/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andreypopp/react-textarea-autosize/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andreypopp/react-textarea-autosize/git/refs{/sha}","trees_url":"https://api.github.com/repos/andreypopp/react-textarea-autosize/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andreypopp/react-textarea-autosize/statuses/{sha}","languages_url":"https://api.github.com/repos/andreypopp/react-textarea-autosize/languages","stargazers_url":"https://api.github.com/repos/andreypopp/react-textarea-autosize/stargazers","contributors_url":"https://api.github.com/repos/andreypopp/react-textarea-autosize/contributors","subscribers_url":"https://api.github.com/repos/andreypopp/react-textarea-autosize/subscribers","subscription_url":"https://api.github.com/repos/andreypopp/react-textarea-autosize/subscription","commits_url":"https://api.github.com/repos/andreypopp/react-textarea-autosize/commits{/sha}","git_commits_url":"https://api.github.com/repos/andreypopp/react-textarea-autosize/git/commits{/sha}","comments_url":"https://api.github.com/repos/andreypopp/react-textarea-autosize/comments{/number}","issue_comment_url":"https://api.github.com/repos/andreypopp/react-textarea-autosize/issues/comments{/number}","contents_url":"https://api.github.com/repos/andreypopp/react-textarea-autosize/contents/{+path}","compare_url":"https://api.github.com/repos/andreypopp/react-textarea-autosize/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andreypopp/react-textarea-autosize/merges","archive_url":"https://api.github.com/repos/andreypopp/react-textarea-autosize/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andreypopp/react-textarea-autosize/downloads","issues_url":"https://api.github.com/repos/andreypopp/react-textarea-autosize/issues{/number}","pulls_url":"https://api.github.com/repos/andreypopp/react-textarea-autosize/pulls{/number}","milestones_url":"https://api.github.com/repos/andreypopp/react-textarea-autosize/milestones{/number}","notifications_url":"https://api.github.com/repos/andreypopp/react-textarea-autosize/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andreypopp/react-textarea-autosize/labels{/name}","releases_url":"https://api.github.com/repos/andreypopp/react-textarea-autosize/releases{/id}","created_at":"2013-08-12T19:47:26Z","updated_at":"2015-05-14T11:38:05Z","pushed_at":"2015-05-15T08:14:47Z","git_url":"git://github.com/andreypopp/react-textarea-autosize.git","ssh_url":"git@github.com:andreypopp/react-textarea-autosize.git","clone_url":"https://github.com/andreypopp/react-textarea-autosize.git","svn_url":"https://github.com/andreypopp/react-textarea-autosize","homepage":"http://andreypopp.github.io/react-textarea-autosize/","size":6850,"stargazers_count":72,"watchers_count":72,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":20,"mirror_url":null,"open_issues_count":4,"forks":20,"open_issues":4,"watchers":72,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/andreypopp/react-textarea-autosize/pulls/27"},"html":{"href":"https://github.com/andreypopp/react-textarea-autosize/pull/27"},"issue":{"href":"https://api.github.com/repos/andreypopp/react-textarea-autosize/issues/27"},"comments":{"href":"https://api.github.com/repos/andreypopp/react-textarea-autosize/issues/27/comments"},"review_comments":{"href":"https://api.github.com/repos/andreypopp/react-textarea-autosize/pulls/27/comments"},"review_comment":{"href":"https://api.github.com/repos/andreypopp/react-textarea-autosize/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andreypopp/react-textarea-autosize/pulls/27/commits"},"statuses":{"href":"https://api.github.com/repos/andreypopp/react-textarea-autosize/statuses/71597eec774f0ebe91122dfc49515847af9c19cf"}}}}