{"action":"created","comment":{"url":"https://api.github.com/repos/thorgate/tg-modal/pulls/comments/78754342","id":78754342,"diff_hunk":"@@ -6,6 +6,9 @@ import Modal from './components/Modal';\n import toggleClass from './toggle-class';\n import getScrollbarSize from './utils/scrollbarSize';\n \n+// This keeps track of how many modals have been created so that the\n+// container padding for the scrollbar is correctly set.\n+let numberOfModalsCreated = 0;","path":"src/browser.js","position":6,"original_position":6,"commit_id":"e35b71aef62d3f81b319f3c3ab81382bd446f75f","original_commit_id":"e35b71aef62d3f81b319f3c3ab81382bd446f75f","user":{"login":"Jyrno42","id":235804,"avatar_url":"https://avatars.githubusercontent.com/u/235804?v=3","gravatar_id":"","url":"https://api.github.com/users/Jyrno42","html_url":"https://github.com/Jyrno42","followers_url":"https://api.github.com/users/Jyrno42/followers","following_url":"https://api.github.com/users/Jyrno42/following{/other_user}","gists_url":"https://api.github.com/users/Jyrno42/gists{/gist_id}","starred_url":"https://api.github.com/users/Jyrno42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jyrno42/subscriptions","organizations_url":"https://api.github.com/users/Jyrno42/orgs","repos_url":"https://api.github.com/users/Jyrno42/repos","events_url":"https://api.github.com/users/Jyrno42/events{/privacy}","received_events_url":"https://api.github.com/users/Jyrno42/received_events","type":"User","site_admin":false},"body":"Why are you tracking created modals? There is no limit on how many modals can be created in tg-modal. The current limitation is only for opened modals.","created_at":"2016-09-14T14:04:00Z","updated_at":"2016-09-14T14:04:00Z","html_url":"https://github.com/thorgate/tg-modal/pull/16#discussion_r78754342","pull_request_url":"https://api.github.com/repos/thorgate/tg-modal/pulls/16","_links":{"self":{"href":"https://api.github.com/repos/thorgate/tg-modal/pulls/comments/78754342"},"html":{"href":"https://github.com/thorgate/tg-modal/pull/16#discussion_r78754342"},"pull_request":{"href":"https://api.github.com/repos/thorgate/tg-modal/pulls/16"}}},"pull_request":{"url":"https://api.github.com/repos/thorgate/tg-modal/pulls/16","id":85184483,"html_url":"https://github.com/thorgate/tg-modal/pull/16","diff_url":"https://github.com/thorgate/tg-modal/pull/16.diff","patch_url":"https://github.com/thorgate/tg-modal/pull/16.patch","issue_url":"https://api.github.com/repos/thorgate/tg-modal/issues/16","number":16,"state":"open","locked":false,"title":"Add support for multiple nested modals.","user":{"login":"schryer","id":286830,"avatar_url":"https://avatars.githubusercontent.com/u/286830?v=3","gravatar_id":"","url":"https://api.github.com/users/schryer","html_url":"https://github.com/schryer","followers_url":"https://api.github.com/users/schryer/followers","following_url":"https://api.github.com/users/schryer/following{/other_user}","gists_url":"https://api.github.com/users/schryer/gists{/gist_id}","starred_url":"https://api.github.com/users/schryer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schryer/subscriptions","organizations_url":"https://api.github.com/users/schryer/orgs","repos_url":"https://api.github.com/users/schryer/repos","events_url":"https://api.github.com/users/schryer/events{/privacy}","received_events_url":"https://api.github.com/users/schryer/received_events","type":"User","site_admin":false},"body":"These changes allow for multiple nested modals.","created_at":"2016-09-14T08:17:54Z","updated_at":"2016-09-14T14:04:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e0b712225e3ce003c64534973d7b485f1ca23e3b","assignee":{"login":"Jyrno42","id":235804,"avatar_url":"https://avatars.githubusercontent.com/u/235804?v=3","gravatar_id":"","url":"https://api.github.com/users/Jyrno42","html_url":"https://github.com/Jyrno42","followers_url":"https://api.github.com/users/Jyrno42/followers","following_url":"https://api.github.com/users/Jyrno42/following{/other_user}","gists_url":"https://api.github.com/users/Jyrno42/gists{/gist_id}","starred_url":"https://api.github.com/users/Jyrno42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jyrno42/subscriptions","organizations_url":"https://api.github.com/users/Jyrno42/orgs","repos_url":"https://api.github.com/users/Jyrno42/repos","events_url":"https://api.github.com/users/Jyrno42/events{/privacy}","received_events_url":"https://api.github.com/users/Jyrno42/received_events","type":"User","site_admin":false},"assignees":[{"login":"Jyrno42","id":235804,"avatar_url":"https://avatars.githubusercontent.com/u/235804?v=3","gravatar_id":"","url":"https://api.github.com/users/Jyrno42","html_url":"https://github.com/Jyrno42","followers_url":"https://api.github.com/users/Jyrno42/followers","following_url":"https://api.github.com/users/Jyrno42/following{/other_user}","gists_url":"https://api.github.com/users/Jyrno42/gists{/gist_id}","starred_url":"https://api.github.com/users/Jyrno42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jyrno42/subscriptions","organizations_url":"https://api.github.com/users/Jyrno42/orgs","repos_url":"https://api.github.com/users/Jyrno42/repos","events_url":"https://api.github.com/users/Jyrno42/events{/privacy}","received_events_url":"https://api.github.com/users/Jyrno42/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/thorgate/tg-modal/pulls/16/commits","review_comments_url":"https://api.github.com/repos/thorgate/tg-modal/pulls/16/comments","review_comment_url":"https://api.github.com/repos/thorgate/tg-modal/pulls/comments{/number}","comments_url":"https://api.github.com/repos/thorgate/tg-modal/issues/16/comments","statuses_url":"https://api.github.com/repos/thorgate/tg-modal/statuses/e35b71aef62d3f81b319f3c3ab81382bd446f75f","head":{"label":"schryer:master","ref":"master","sha":"e35b71aef62d3f81b319f3c3ab81382bd446f75f","user":{"login":"schryer","id":286830,"avatar_url":"https://avatars.githubusercontent.com/u/286830?v=3","gravatar_id":"","url":"https://api.github.com/users/schryer","html_url":"https://github.com/schryer","followers_url":"https://api.github.com/users/schryer/followers","following_url":"https://api.github.com/users/schryer/following{/other_user}","gists_url":"https://api.github.com/users/schryer/gists{/gist_id}","starred_url":"https://api.github.com/users/schryer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schryer/subscriptions","organizations_url":"https://api.github.com/users/schryer/orgs","repos_url":"https://api.github.com/users/schryer/repos","events_url":"https://api.github.com/users/schryer/events{/privacy}","received_events_url":"https://api.github.com/users/schryer/received_events","type":"User","site_admin":false},"repo":{"id":68093030,"name":"tg-modal","full_name":"schryer/tg-modal","owner":{"login":"schryer","id":286830,"avatar_url":"https://avatars.githubusercontent.com/u/286830?v=3","gravatar_id":"","url":"https://api.github.com/users/schryer","html_url":"https://github.com/schryer","followers_url":"https://api.github.com/users/schryer/followers","following_url":"https://api.github.com/users/schryer/following{/other_user}","gists_url":"https://api.github.com/users/schryer/gists{/gist_id}","starred_url":"https://api.github.com/users/schryer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schryer/subscriptions","organizations_url":"https://api.github.com/users/schryer/orgs","repos_url":"https://api.github.com/users/schryer/repos","events_url":"https://api.github.com/users/schryer/events{/privacy}","received_events_url":"https://api.github.com/users/schryer/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/schryer/tg-modal","description":"Universal modal component for React","fork":true,"url":"https://api.github.com/repos/schryer/tg-modal","forks_url":"https://api.github.com/repos/schryer/tg-modal/forks","keys_url":"https://api.github.com/repos/schryer/tg-modal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/schryer/tg-modal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/schryer/tg-modal/teams","hooks_url":"https://api.github.com/repos/schryer/tg-modal/hooks","issue_events_url":"https://api.github.com/repos/schryer/tg-modal/issues/events{/number}","events_url":"https://api.github.com/repos/schryer/tg-modal/events","assignees_url":"https://api.github.com/repos/schryer/tg-modal/assignees{/user}","branches_url":"https://api.github.com/repos/schryer/tg-modal/branches{/branch}","tags_url":"https://api.github.com/repos/schryer/tg-modal/tags","blobs_url":"https://api.github.com/repos/schryer/tg-modal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/schryer/tg-modal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/schryer/tg-modal/git/refs{/sha}","trees_url":"https://api.github.com/repos/schryer/tg-modal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/schryer/tg-modal/statuses/{sha}","languages_url":"https://api.github.com/repos/schryer/tg-modal/languages","stargazers_url":"https://api.github.com/repos/schryer/tg-modal/stargazers","contributors_url":"https://api.github.com/repos/schryer/tg-modal/contributors","subscribers_url":"https://api.github.com/repos/schryer/tg-modal/subscribers","subscription_url":"https://api.github.com/repos/schryer/tg-modal/subscription","commits_url":"https://api.github.com/repos/schryer/tg-modal/commits{/sha}","git_commits_url":"https://api.github.com/repos/schryer/tg-modal/git/commits{/sha}","comments_url":"https://api.github.com/repos/schryer/tg-modal/comments{/number}","issue_comment_url":"https://api.github.com/repos/schryer/tg-modal/issues/comments{/number}","contents_url":"https://api.github.com/repos/schryer/tg-modal/contents/{+path}","compare_url":"https://api.github.com/repos/schryer/tg-modal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/schryer/tg-modal/merges","archive_url":"https://api.github.com/repos/schryer/tg-modal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/schryer/tg-modal/downloads","issues_url":"https://api.github.com/repos/schryer/tg-modal/issues{/number}","pulls_url":"https://api.github.com/repos/schryer/tg-modal/pulls{/number}","milestones_url":"https://api.github.com/repos/schryer/tg-modal/milestones{/number}","notifications_url":"https://api.github.com/repos/schryer/tg-modal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/schryer/tg-modal/labels{/name}","releases_url":"https://api.github.com/repos/schryer/tg-modal/releases{/id}","deployments_url":"https://api.github.com/repos/schryer/tg-modal/deployments","created_at":"2016-09-13T09:11:56Z","updated_at":"2016-09-13T09:11:57Z","pushed_at":"2016-09-14T12:46:50Z","git_url":"git://github.com/schryer/tg-modal.git","ssh_url":"git@github.com:schryer/tg-modal.git","clone_url":"https://github.com/schryer/tg-modal.git","svn_url":"https://github.com/schryer/tg-modal","homepage":"https://thorgate.github.io/tg-modal/","size":1517,"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":"thorgate:master","ref":"master","sha":"9d8156541ffcccaa438eec4a3a70f717c4eb0dd8","user":{"login":"thorgate","id":6310785,"avatar_url":"https://avatars.githubusercontent.com/u/6310785?v=3","gravatar_id":"","url":"https://api.github.com/users/thorgate","html_url":"https://github.com/thorgate","followers_url":"https://api.github.com/users/thorgate/followers","following_url":"https://api.github.com/users/thorgate/following{/other_user}","gists_url":"https://api.github.com/users/thorgate/gists{/gist_id}","starred_url":"https://api.github.com/users/thorgate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thorgate/subscriptions","organizations_url":"https://api.github.com/users/thorgate/orgs","repos_url":"https://api.github.com/users/thorgate/repos","events_url":"https://api.github.com/users/thorgate/events{/privacy}","received_events_url":"https://api.github.com/users/thorgate/received_events","type":"Organization","site_admin":false},"repo":{"id":42008557,"name":"tg-modal","full_name":"thorgate/tg-modal","owner":{"login":"thorgate","id":6310785,"avatar_url":"https://avatars.githubusercontent.com/u/6310785?v=3","gravatar_id":"","url":"https://api.github.com/users/thorgate","html_url":"https://github.com/thorgate","followers_url":"https://api.github.com/users/thorgate/followers","following_url":"https://api.github.com/users/thorgate/following{/other_user}","gists_url":"https://api.github.com/users/thorgate/gists{/gist_id}","starred_url":"https://api.github.com/users/thorgate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thorgate/subscriptions","organizations_url":"https://api.github.com/users/thorgate/orgs","repos_url":"https://api.github.com/users/thorgate/repos","events_url":"https://api.github.com/users/thorgate/events{/privacy}","received_events_url":"https://api.github.com/users/thorgate/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/thorgate/tg-modal","description":"Universal modal component for React","fork":false,"url":"https://api.github.com/repos/thorgate/tg-modal","forks_url":"https://api.github.com/repos/thorgate/tg-modal/forks","keys_url":"https://api.github.com/repos/thorgate/tg-modal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thorgate/tg-modal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thorgate/tg-modal/teams","hooks_url":"https://api.github.com/repos/thorgate/tg-modal/hooks","issue_events_url":"https://api.github.com/repos/thorgate/tg-modal/issues/events{/number}","events_url":"https://api.github.com/repos/thorgate/tg-modal/events","assignees_url":"https://api.github.com/repos/thorgate/tg-modal/assignees{/user}","branches_url":"https://api.github.com/repos/thorgate/tg-modal/branches{/branch}","tags_url":"https://api.github.com/repos/thorgate/tg-modal/tags","blobs_url":"https://api.github.com/repos/thorgate/tg-modal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thorgate/tg-modal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thorgate/tg-modal/git/refs{/sha}","trees_url":"https://api.github.com/repos/thorgate/tg-modal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thorgate/tg-modal/statuses/{sha}","languages_url":"https://api.github.com/repos/thorgate/tg-modal/languages","stargazers_url":"https://api.github.com/repos/thorgate/tg-modal/stargazers","contributors_url":"https://api.github.com/repos/thorgate/tg-modal/contributors","subscribers_url":"https://api.github.com/repos/thorgate/tg-modal/subscribers","subscription_url":"https://api.github.com/repos/thorgate/tg-modal/subscription","commits_url":"https://api.github.com/repos/thorgate/tg-modal/commits{/sha}","git_commits_url":"https://api.github.com/repos/thorgate/tg-modal/git/commits{/sha}","comments_url":"https://api.github.com/repos/thorgate/tg-modal/comments{/number}","issue_comment_url":"https://api.github.com/repos/thorgate/tg-modal/issues/comments{/number}","contents_url":"https://api.github.com/repos/thorgate/tg-modal/contents/{+path}","compare_url":"https://api.github.com/repos/thorgate/tg-modal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thorgate/tg-modal/merges","archive_url":"https://api.github.com/repos/thorgate/tg-modal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thorgate/tg-modal/downloads","issues_url":"https://api.github.com/repos/thorgate/tg-modal/issues{/number}","pulls_url":"https://api.github.com/repos/thorgate/tg-modal/pulls{/number}","milestones_url":"https://api.github.com/repos/thorgate/tg-modal/milestones{/number}","notifications_url":"https://api.github.com/repos/thorgate/tg-modal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thorgate/tg-modal/labels{/name}","releases_url":"https://api.github.com/repos/thorgate/tg-modal/releases{/id}","deployments_url":"https://api.github.com/repos/thorgate/tg-modal/deployments","created_at":"2015-09-06T15:58:47Z","updated_at":"2016-09-09T17:09:50Z","pushed_at":"2016-09-14T12:46:50Z","git_url":"git://github.com/thorgate/tg-modal.git","ssh_url":"git@github.com:thorgate/tg-modal.git","clone_url":"https://github.com/thorgate/tg-modal.git","svn_url":"https://github.com/thorgate/tg-modal","homepage":"https://thorgate.github.io/tg-modal/","size":1642,"stargazers_count":20,"watchers_count":20,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":4,"mirror_url":null,"open_issues_count":3,"forks":4,"open_issues":3,"watchers":20,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/thorgate/tg-modal/pulls/16"},"html":{"href":"https://github.com/thorgate/tg-modal/pull/16"},"issue":{"href":"https://api.github.com/repos/thorgate/tg-modal/issues/16"},"comments":{"href":"https://api.github.com/repos/thorgate/tg-modal/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/thorgate/tg-modal/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/thorgate/tg-modal/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/thorgate/tg-modal/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/thorgate/tg-modal/statuses/e35b71aef62d3f81b319f3c3ab81382bd446f75f"}}}}
{"actor":{"display_login":"Jyrno42"}}