{"action":"created","comment":{"url":"https://api.github.com/repos/callemall/material-ui/pulls/comments/46548871","id":46548871,"diff_hunk":"@@ -60,12 +61,34 @@ const RenderToLayer = React.createClass({\n         this._layer = document.createElement('div');\n         document.body.appendChild(this._layer);\n       }\n-      this._bindClickAway();\n+      if (this.props.useLayerForClickAway) {\n+        this._layer.addEventListener('touchstart', this.onClickAway);\n+        this._layer.addEventListener('click', this.onClickAway);\n+        this._layer.style.position = 'fixed';\n+        this._layer.style.top = 0;\n+        this._layer.style.bottom = 0;\n+        this._layer.style.left = 0;\n+        this._layer.style.right = 0;\n+        this._layer.style.zIndex = 20;","path":"src/render-to-layer.js","position":81,"original_position":81,"commit_id":"faed567811e91bbc080a7492b3acdfd674438609","original_commit_id":"faed567811e91bbc080a7492b3acdfd674438609","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":"`20` seems to be a magic number","created_at":"2015-12-03T13:11:09Z","updated_at":"2015-12-03T13:11:09Z","html_url":"https://github.com/callemall/material-ui/pull/2359#discussion_r46548871","pull_request_url":"https://api.github.com/repos/callemall/material-ui/pulls/2359","_links":{"self":{"href":"https://api.github.com/repos/callemall/material-ui/pulls/comments/46548871"},"html":{"href":"https://github.com/callemall/material-ui/pull/2359#discussion_r46548871"},"pull_request":{"href":"https://api.github.com/repos/callemall/material-ui/pulls/2359"}}},"pull_request":{"url":"https://api.github.com/repos/callemall/material-ui/pulls/2359","id":52527733,"html_url":"https://github.com/callemall/material-ui/pull/2359","diff_url":"https://github.com/callemall/material-ui/pull/2359.diff","patch_url":"https://github.com/callemall/material-ui/pull/2359.patch","issue_url":"https://api.github.com/repos/callemall/material-ui/issues/2359","number":2359,"state":"open","locked":false,"title":"layer clickaway option for render-to-layer/popover","user":{"login":"chrismcv","id":145466,"avatar_url":"https://avatars.githubusercontent.com/u/145466?v=3","gravatar_id":"","url":"https://api.github.com/users/chrismcv","html_url":"https://github.com/chrismcv","followers_url":"https://api.github.com/users/chrismcv/followers","following_url":"https://api.github.com/users/chrismcv/following{/other_user}","gists_url":"https://api.github.com/users/chrismcv/gists{/gist_id}","starred_url":"https://api.github.com/users/chrismcv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrismcv/subscriptions","organizations_url":"https://api.github.com/users/chrismcv/orgs","repos_url":"https://api.github.com/users/chrismcv/repos","events_url":"https://api.github.com/users/chrismcv/events{/privacy}","received_events_url":"https://api.github.com/users/chrismcv/received_events","type":"User","site_admin":false},"body":"@oliviertassinari - ended up changing the property name to `useLayerForClickAway`","created_at":"2015-12-03T12:26:26Z","updated_at":"2015-12-03T13:11:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"067e3f65a9fe885dfc7f75bd5b63ebdbf9d848f6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/callemall/material-ui/pulls/2359/commits","review_comments_url":"https://api.github.com/repos/callemall/material-ui/pulls/2359/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/2359/comments","statuses_url":"https://api.github.com/repos/callemall/material-ui/statuses/faed567811e91bbc080a7492b3acdfd674438609","head":{"label":"chrismcv:render-to-layer-enhance","ref":"render-to-layer-enhance","sha":"faed567811e91bbc080a7492b3acdfd674438609","user":{"login":"chrismcv","id":145466,"avatar_url":"https://avatars.githubusercontent.com/u/145466?v=3","gravatar_id":"","url":"https://api.github.com/users/chrismcv","html_url":"https://github.com/chrismcv","followers_url":"https://api.github.com/users/chrismcv/followers","following_url":"https://api.github.com/users/chrismcv/following{/other_user}","gists_url":"https://api.github.com/users/chrismcv/gists{/gist_id}","starred_url":"https://api.github.com/users/chrismcv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrismcv/subscriptions","organizations_url":"https://api.github.com/users/chrismcv/orgs","repos_url":"https://api.github.com/users/chrismcv/repos","events_url":"https://api.github.com/users/chrismcv/events{/privacy}","received_events_url":"https://api.github.com/users/chrismcv/received_events","type":"User","site_admin":false},"repo":{"id":36790524,"name":"material-ui","full_name":"chrismcv/material-ui","owner":{"login":"chrismcv","id":145466,"avatar_url":"https://avatars.githubusercontent.com/u/145466?v=3","gravatar_id":"","url":"https://api.github.com/users/chrismcv","html_url":"https://github.com/chrismcv","followers_url":"https://api.github.com/users/chrismcv/followers","following_url":"https://api.github.com/users/chrismcv/following{/other_user}","gists_url":"https://api.github.com/users/chrismcv/gists{/gist_id}","starred_url":"https://api.github.com/users/chrismcv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrismcv/subscriptions","organizations_url":"https://api.github.com/users/chrismcv/orgs","repos_url":"https://api.github.com/users/chrismcv/repos","events_url":"https://api.github.com/users/chrismcv/events{/privacy}","received_events_url":"https://api.github.com/users/chrismcv/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/chrismcv/material-ui","description":"A Set of React Components that Implement Google's Material Design.","fork":true,"url":"https://api.github.com/repos/chrismcv/material-ui","forks_url":"https://api.github.com/repos/chrismcv/material-ui/forks","keys_url":"https://api.github.com/repos/chrismcv/material-ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chrismcv/material-ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chrismcv/material-ui/teams","hooks_url":"https://api.github.com/repos/chrismcv/material-ui/hooks","issue_events_url":"https://api.github.com/repos/chrismcv/material-ui/issues/events{/number}","events_url":"https://api.github.com/repos/chrismcv/material-ui/events","assignees_url":"https://api.github.com/repos/chrismcv/material-ui/assignees{/user}","branches_url":"https://api.github.com/repos/chrismcv/material-ui/branches{/branch}","tags_url":"https://api.github.com/repos/chrismcv/material-ui/tags","blobs_url":"https://api.github.com/repos/chrismcv/material-ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chrismcv/material-ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chrismcv/material-ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/chrismcv/material-ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chrismcv/material-ui/statuses/{sha}","languages_url":"https://api.github.com/repos/chrismcv/material-ui/languages","stargazers_url":"https://api.github.com/repos/chrismcv/material-ui/stargazers","contributors_url":"https://api.github.com/repos/chrismcv/material-ui/contributors","subscribers_url":"https://api.github.com/repos/chrismcv/material-ui/subscribers","subscription_url":"https://api.github.com/repos/chrismcv/material-ui/subscription","commits_url":"https://api.github.com/repos/chrismcv/material-ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/chrismcv/material-ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/chrismcv/material-ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/chrismcv/material-ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/chrismcv/material-ui/contents/{+path}","compare_url":"https://api.github.com/repos/chrismcv/material-ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chrismcv/material-ui/merges","archive_url":"https://api.github.com/repos/chrismcv/material-ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chrismcv/material-ui/downloads","issues_url":"https://api.github.com/repos/chrismcv/material-ui/issues{/number}","pulls_url":"https://api.github.com/repos/chrismcv/material-ui/pulls{/number}","milestones_url":"https://api.github.com/repos/chrismcv/material-ui/milestones{/number}","notifications_url":"https://api.github.com/repos/chrismcv/material-ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chrismcv/material-ui/labels{/name}","releases_url":"https://api.github.com/repos/chrismcv/material-ui/releases{/id}","created_at":"2015-06-03T08:32:01Z","updated_at":"2015-06-03T08:32:02Z","pushed_at":"2015-12-03T12:36:47Z","git_url":"git://github.com/chrismcv/material-ui.git","ssh_url":"git@github.com:chrismcv/material-ui.git","clone_url":"https://github.com/chrismcv/material-ui.git","svn_url":"https://github.com/chrismcv/material-ui","homepage":"http://material-ui.com","size":25623,"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":"callemall:master","ref":"master","sha":"03cdf021401e6ed0931a69660adec2ab819edfba","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-03T12:36:57Z","pushed_at":"2015-12-03T12:56:36Z","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":38670,"stargazers_count":12219,"watchers_count":12219,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1959,"mirror_url":null,"open_issues_count":494,"forks":1959,"open_issues":494,"watchers":12219,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/callemall/material-ui/pulls/2359"},"html":{"href":"https://github.com/callemall/material-ui/pull/2359"},"issue":{"href":"https://api.github.com/repos/callemall/material-ui/issues/2359"},"comments":{"href":"https://api.github.com/repos/callemall/material-ui/issues/2359/comments"},"review_comments":{"href":"https://api.github.com/repos/callemall/material-ui/pulls/2359/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/2359/commits"},"statuses":{"href":"https://api.github.com/repos/callemall/material-ui/statuses/faed567811e91bbc080a7492b3acdfd674438609"}}}}