{"action":"created","comment":{"url":"https://api.github.com/repos/callemall/material-ui/pulls/comments/47957573","id":47957573,"diff_hunk":"@@ -78,8 +131,14 @@ const Snackbar = React.createClass({\n   },\n \n   getInitialState() {\n+    let open = this.props.open;\n+\n+    if (open === null) {\n+      open = this.props.openOnMount;\n+    }\n+\n     return {\n-      open: this.props.openOnMount,\n+      open: open,","path":"src/snackbar.jsx","position":121,"original_position":121,"commit_id":"f6145c59aa6e5dc6622a574872b0f8491e7d826d","original_commit_id":"f6145c59aa6e5dc6622a574872b0f8491e7d826d","user":{"login":"newoga","id":344018,"avatar_url":"https://avatars.githubusercontent.com/u/344018?v=3","gravatar_id":"","url":"https://api.github.com/users/newoga","html_url":"https://github.com/newoga","followers_url":"https://api.github.com/users/newoga/followers","following_url":"https://api.github.com/users/newoga/following{/other_user}","gists_url":"https://api.github.com/users/newoga/gists{/gist_id}","starred_url":"https://api.github.com/users/newoga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/newoga/subscriptions","organizations_url":"https://api.github.com/users/newoga/orgs","repos_url":"https://api.github.com/users/newoga/repos","events_url":"https://api.github.com/users/newoga/events{/privacy}","received_events_url":"https://api.github.com/users/newoga/received_events","type":"User","site_admin":false},"body":"might be able to make `open` a `const` or directly assign it to this object like \r\n```js\r\n{\r\n  open: this.props.open || this.props.openOnMount,\r\n}\r\n``` ","created_at":"2015-12-17T20:35:35Z","updated_at":"2015-12-17T20:35:35Z","html_url":"https://github.com/callemall/material-ui/pull/2562#discussion_r47957573","pull_request_url":"https://api.github.com/repos/callemall/material-ui/pulls/2562","_links":{"self":{"href":"https://api.github.com/repos/callemall/material-ui/pulls/comments/47957573"},"html":{"href":"https://github.com/callemall/material-ui/pull/2562#discussion_r47957573"},"pull_request":{"href":"https://api.github.com/repos/callemall/material-ui/pulls/2562"}}},"pull_request":{"url":"https://api.github.com/repos/callemall/material-ui/pulls/2562","id":53909054,"html_url":"https://github.com/callemall/material-ui/pull/2562","diff_url":"https://github.com/callemall/material-ui/pull/2562.diff","patch_url":"https://github.com/callemall/material-ui/pull/2562.patch","issue_url":"https://api.github.com/repos/callemall/material-ui/issues/2562","number":2562,"state":"open","locked":false,"title":"[Doc] Convert the Snackbar to the new format","user":{"login":"oliviertassinari","id":3165635,"avatar_url":"https://avatars.githubusercontent.com/u/3165635?v=3","gravatar_id":"","url":"https://api.github.com/users/oliviertassinari","html_url":"https://github.com/oliviertassinari","followers_url":"https://api.github.com/users/oliviertassinari/followers","following_url":"https://api.github.com/users/oliviertassinari/following{/other_user}","gists_url":"https://api.github.com/users/oliviertassinari/gists{/gist_id}","starred_url":"https://api.github.com/users/oliviertassinari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oliviertassinari/subscriptions","organizations_url":"https://api.github.com/users/oliviertassinari/orgs","repos_url":"https://api.github.com/users/oliviertassinari/repos","events_url":"https://api.github.com/users/oliviertassinari/events{/privacy}","received_events_url":"https://api.github.com/users/oliviertassinari/received_events","type":"User","site_admin":false},"body":"I think that we should make the `Snackbar` controlled as the `Dialog`.\r\n@subjectix Do you when me to do it in this PR?\r\nFix https://github.com/callemall/material-ui/issues/2572.","created_at":"2015-12-16T22:36:07Z","updated_at":"2015-12-17T20:35:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a8c3f2a20242eac40f6e875752ea944418e199e9","assignee":null,"milestone":{"url":"https://api.github.com/repos/callemall/material-ui/milestones/5","html_url":"https://github.com/callemall/material-ui/milestones/Improve%20the%20documentation","labels_url":"https://api.github.com/repos/callemall/material-ui/milestones/5/labels","id":1406406,"number":5,"title":"Improve the documentation","description":"","creator":{"login":"oliviertassinari","id":3165635,"avatar_url":"https://avatars.githubusercontent.com/u/3165635?v=3","gravatar_id":"","url":"https://api.github.com/users/oliviertassinari","html_url":"https://github.com/oliviertassinari","followers_url":"https://api.github.com/users/oliviertassinari/followers","following_url":"https://api.github.com/users/oliviertassinari/following{/other_user}","gists_url":"https://api.github.com/users/oliviertassinari/gists{/gist_id}","starred_url":"https://api.github.com/users/oliviertassinari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oliviertassinari/subscriptions","organizations_url":"https://api.github.com/users/oliviertassinari/orgs","repos_url":"https://api.github.com/users/oliviertassinari/repos","events_url":"https://api.github.com/users/oliviertassinari/events{/privacy}","received_events_url":"https://api.github.com/users/oliviertassinari/received_events","type":"User","site_admin":false},"open_issues":27,"closed_issues":28,"state":"open","created_at":"2015-11-11T12:26:49Z","updated_at":"2015-12-17T16:56:27Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/callemall/material-ui/pulls/2562/commits","review_comments_url":"https://api.github.com/repos/callemall/material-ui/pulls/2562/comments","review_comment_url":"https://api.github.com/repos/callemall/material-ui/pulls/comments{/number}","comments_url":"https://api.github.com/repos/callemall/material-ui/issues/2562/comments","statuses_url":"https://api.github.com/repos/callemall/material-ui/statuses/f6145c59aa6e5dc6622a574872b0f8491e7d826d","head":{"label":"oliviertassinari:doc-codgen-snackbar","ref":"doc-codgen-snackbar","sha":"f6145c59aa6e5dc6622a574872b0f8491e7d826d","user":{"login":"oliviertassinari","id":3165635,"avatar_url":"https://avatars.githubusercontent.com/u/3165635?v=3","gravatar_id":"","url":"https://api.github.com/users/oliviertassinari","html_url":"https://github.com/oliviertassinari","followers_url":"https://api.github.com/users/oliviertassinari/followers","following_url":"https://api.github.com/users/oliviertassinari/following{/other_user}","gists_url":"https://api.github.com/users/oliviertassinari/gists{/gist_id}","starred_url":"https://api.github.com/users/oliviertassinari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oliviertassinari/subscriptions","organizations_url":"https://api.github.com/users/oliviertassinari/orgs","repos_url":"https://api.github.com/users/oliviertassinari/repos","events_url":"https://api.github.com/users/oliviertassinari/events{/privacy}","received_events_url":"https://api.github.com/users/oliviertassinari/received_events","type":"User","site_admin":false},"repo":{"id":31391995,"name":"material-ui","full_name":"oliviertassinari/material-ui","owner":{"login":"oliviertassinari","id":3165635,"avatar_url":"https://avatars.githubusercontent.com/u/3165635?v=3","gravatar_id":"","url":"https://api.github.com/users/oliviertassinari","html_url":"https://github.com/oliviertassinari","followers_url":"https://api.github.com/users/oliviertassinari/followers","following_url":"https://api.github.com/users/oliviertassinari/following{/other_user}","gists_url":"https://api.github.com/users/oliviertassinari/gists{/gist_id}","starred_url":"https://api.github.com/users/oliviertassinari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oliviertassinari/subscriptions","organizations_url":"https://api.github.com/users/oliviertassinari/orgs","repos_url":"https://api.github.com/users/oliviertassinari/repos","events_url":"https://api.github.com/users/oliviertassinari/events{/privacy}","received_events_url":"https://api.github.com/users/oliviertassinari/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/oliviertassinari/material-ui","description":"A CSS Framework and a Set of React Components that Implement Google's Material Design.","fork":true,"url":"https://api.github.com/repos/oliviertassinari/material-ui","forks_url":"https://api.github.com/repos/oliviertassinari/material-ui/forks","keys_url":"https://api.github.com/repos/oliviertassinari/material-ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/oliviertassinari/material-ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/oliviertassinari/material-ui/teams","hooks_url":"https://api.github.com/repos/oliviertassinari/material-ui/hooks","issue_events_url":"https://api.github.com/repos/oliviertassinari/material-ui/issues/events{/number}","events_url":"https://api.github.com/repos/oliviertassinari/material-ui/events","assignees_url":"https://api.github.com/repos/oliviertassinari/material-ui/assignees{/user}","branches_url":"https://api.github.com/repos/oliviertassinari/material-ui/branches{/branch}","tags_url":"https://api.github.com/repos/oliviertassinari/material-ui/tags","blobs_url":"https://api.github.com/repos/oliviertassinari/material-ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/oliviertassinari/material-ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/oliviertassinari/material-ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/oliviertassinari/material-ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/oliviertassinari/material-ui/statuses/{sha}","languages_url":"https://api.github.com/repos/oliviertassinari/material-ui/languages","stargazers_url":"https://api.github.com/repos/oliviertassinari/material-ui/stargazers","contributors_url":"https://api.github.com/repos/oliviertassinari/material-ui/contributors","subscribers_url":"https://api.github.com/repos/oliviertassinari/material-ui/subscribers","subscription_url":"https://api.github.com/repos/oliviertassinari/material-ui/subscription","commits_url":"https://api.github.com/repos/oliviertassinari/material-ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/oliviertassinari/material-ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/oliviertassinari/material-ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/oliviertassinari/material-ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/oliviertassinari/material-ui/contents/{+path}","compare_url":"https://api.github.com/repos/oliviertassinari/material-ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/oliviertassinari/material-ui/merges","archive_url":"https://api.github.com/repos/oliviertassinari/material-ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/oliviertassinari/material-ui/downloads","issues_url":"https://api.github.com/repos/oliviertassinari/material-ui/issues{/number}","pulls_url":"https://api.github.com/repos/oliviertassinari/material-ui/pulls{/number}","milestones_url":"https://api.github.com/repos/oliviertassinari/material-ui/milestones{/number}","notifications_url":"https://api.github.com/repos/oliviertassinari/material-ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/oliviertassinari/material-ui/labels{/name}","releases_url":"https://api.github.com/repos/oliviertassinari/material-ui/releases{/id}","created_at":"2015-02-26T22:23:03Z","updated_at":"2015-05-03T21:22:06Z","pushed_at":"2015-12-17T19:18:21Z","git_url":"git://github.com/oliviertassinari/material-ui.git","ssh_url":"git@github.com:oliviertassinari/material-ui.git","clone_url":"https://github.com/oliviertassinari/material-ui.git","svn_url":"https://github.com/oliviertassinari/material-ui","homepage":"http://material-ui.com","size":7936,"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":"callemall:master","ref":"master","sha":"f10fc48f4f358d84497666753270926138624bd7","user":{"login":"callemall","id":1262264,"avatar_url":"https://avatars.githubusercontent.com/u/1262264?v=3","gravatar_id":"","url":"https://api.github.com/users/callemall","html_url":"https://github.com/callemall","followers_url":"https://api.github.com/users/callemall/followers","following_url":"https://api.github.com/users/callemall/following{/other_user}","gists_url":"https://api.github.com/users/callemall/gists{/gist_id}","starred_url":"https://api.github.com/users/callemall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/callemall/subscriptions","organizations_url":"https://api.github.com/users/callemall/orgs","repos_url":"https://api.github.com/users/callemall/repos","events_url":"https://api.github.com/users/callemall/events{/privacy}","received_events_url":"https://api.github.com/users/callemall/received_events","type":"Organization","site_admin":false},"repo":{"id":23083156,"name":"material-ui","full_name":"callemall/material-ui","owner":{"login":"callemall","id":1262264,"avatar_url":"https://avatars.githubusercontent.com/u/1262264?v=3","gravatar_id":"","url":"https://api.github.com/users/callemall","html_url":"https://github.com/callemall","followers_url":"https://api.github.com/users/callemall/followers","following_url":"https://api.github.com/users/callemall/following{/other_user}","gists_url":"https://api.github.com/users/callemall/gists{/gist_id}","starred_url":"https://api.github.com/users/callemall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/callemall/subscriptions","organizations_url":"https://api.github.com/users/callemall/orgs","repos_url":"https://api.github.com/users/callemall/repos","events_url":"https://api.github.com/users/callemall/events{/privacy}","received_events_url":"https://api.github.com/users/callemall/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/callemall/material-ui","description":"React Components that Implement Google's Material Design.","fork":false,"url":"https://api.github.com/repos/callemall/material-ui","forks_url":"https://api.github.com/repos/callemall/material-ui/forks","keys_url":"https://api.github.com/repos/callemall/material-ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/callemall/material-ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/callemall/material-ui/teams","hooks_url":"https://api.github.com/repos/callemall/material-ui/hooks","issue_events_url":"https://api.github.com/repos/callemall/material-ui/issues/events{/number}","events_url":"https://api.github.com/repos/callemall/material-ui/events","assignees_url":"https://api.github.com/repos/callemall/material-ui/assignees{/user}","branches_url":"https://api.github.com/repos/callemall/material-ui/branches{/branch}","tags_url":"https://api.github.com/repos/callemall/material-ui/tags","blobs_url":"https://api.github.com/repos/callemall/material-ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/callemall/material-ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/callemall/material-ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/callemall/material-ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/callemall/material-ui/statuses/{sha}","languages_url":"https://api.github.com/repos/callemall/material-ui/languages","stargazers_url":"https://api.github.com/repos/callemall/material-ui/stargazers","contributors_url":"https://api.github.com/repos/callemall/material-ui/contributors","subscribers_url":"https://api.github.com/repos/callemall/material-ui/subscribers","subscription_url":"https://api.github.com/repos/callemall/material-ui/subscription","commits_url":"https://api.github.com/repos/callemall/material-ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/callemall/material-ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/callemall/material-ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/callemall/material-ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/callemall/material-ui/contents/{+path}","compare_url":"https://api.github.com/repos/callemall/material-ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/callemall/material-ui/merges","archive_url":"https://api.github.com/repos/callemall/material-ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/callemall/material-ui/downloads","issues_url":"https://api.github.com/repos/callemall/material-ui/issues{/number}","pulls_url":"https://api.github.com/repos/callemall/material-ui/pulls{/number}","milestones_url":"https://api.github.com/repos/callemall/material-ui/milestones{/number}","notifications_url":"https://api.github.com/repos/callemall/material-ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/callemall/material-ui/labels{/name}","releases_url":"https://api.github.com/repos/callemall/material-ui/releases{/id}","created_at":"2014-08-18T19:11:54Z","updated_at":"2015-12-17T19:48:54Z","pushed_at":"2015-12-17T19:18:21Z","git_url":"git://github.com/callemall/material-ui.git","ssh_url":"git@github.com:callemall/material-ui.git","clone_url":"https://github.com/callemall/material-ui.git","svn_url":"https://github.com/callemall/material-ui","homepage":"http://www.material-ui.com","size":39095,"stargazers_count":12497,"watchers_count":12497,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2030,"mirror_url":null,"open_issues_count":464,"forks":2030,"open_issues":464,"watchers":12497,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/callemall/material-ui/pulls/2562"},"html":{"href":"https://github.com/callemall/material-ui/pull/2562"},"issue":{"href":"https://api.github.com/repos/callemall/material-ui/issues/2562"},"comments":{"href":"https://api.github.com/repos/callemall/material-ui/issues/2562/comments"},"review_comments":{"href":"https://api.github.com/repos/callemall/material-ui/pulls/2562/comments"},"review_comment":{"href":"https://api.github.com/repos/callemall/material-ui/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/callemall/material-ui/pulls/2562/commits"},"statuses":{"href":"https://api.github.com/repos/callemall/material-ui/statuses/f6145c59aa6e5dc6622a574872b0f8491e7d826d"}}}}