{"action":"created","comment":{"url":"https://api.github.com/repos/mixpanel/mixpanel-common/pulls/comments/81862887","pull_request_review_id":2812164,"id":81862887,"diff_hunk":"@@ -76,12 +82,26 @@\n       });\n \n       var alertModal = document.getElementById('alert-modal');\n-      alertModal.addEventListener('change', function() {\n+      alertModal.addEventListener('change', function(e) {\n           if (e.detail.state === 'closed') {\n               alertModal.setAttribute('closed', true);\n           }\n       });\n \n+      var purpleModal = document.getElementById('purple-modal');\n+      purpleModal.addEventListener('change', function(e) {\n+          if (e.detail.state === 'closed') {\n+              purpleModal.setAttribute('closed', true);\n+          }\n+      });\n+      var openPurpleModal = function() {\n+        purpleModal.removeAttribute('closed');","path":"examples/index.html","position":38,"original_position":38,"commit_id":"220e56c2df210da651ea16bf3a69e9950d090fad","original_commit_id":"220e56c2df210da651ea16bf3a69e9950d090fad","user":{"login":"tdumitrescu","id":855881,"avatar_url":"https://avatars.githubusercontent.com/u/855881?v=3","gravatar_id":"","url":"https://api.github.com/users/tdumitrescu","html_url":"https://github.com/tdumitrescu","followers_url":"https://api.github.com/users/tdumitrescu/followers","following_url":"https://api.github.com/users/tdumitrescu/following{/other_user}","gists_url":"https://api.github.com/users/tdumitrescu/gists{/gist_id}","starred_url":"https://api.github.com/users/tdumitrescu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tdumitrescu/subscriptions","organizations_url":"https://api.github.com/users/tdumitrescu/orgs","repos_url":"https://api.github.com/users/tdumitrescu/repos","events_url":"https://api.github.com/users/tdumitrescu/events{/privacy}","received_events_url":"https://api.github.com/users/tdumitrescu/received_events","type":"User","site_admin":false},"body":"is this something that our modals don't do automatically when `open()` is called?","created_at":"2016-10-04T21:56:13Z","updated_at":"2016-10-04T21:56:13Z","html_url":"https://github.com/mixpanel/mixpanel-common/pull/53#discussion_r81862887","pull_request_url":"https://api.github.com/repos/mixpanel/mixpanel-common/pulls/53","_links":{"self":{"href":"https://api.github.com/repos/mixpanel/mixpanel-common/pulls/comments/81862887"},"html":{"href":"https://github.com/mixpanel/mixpanel-common/pull/53#discussion_r81862887"},"pull_request":{"href":"https://api.github.com/repos/mixpanel/mixpanel-common/pulls/53"}}},"pull_request":{"url":"https://api.github.com/repos/mixpanel/mixpanel-common/pulls/53","id":87981546,"html_url":"https://github.com/mixpanel/mixpanel-common/pull/53","diff_url":"https://github.com/mixpanel/mixpanel-common/pull/53.diff","patch_url":"https://github.com/mixpanel/mixpanel-common/pull/53.patch","issue_url":"https://api.github.com/repos/mixpanel/mixpanel-common/issues/53","number":53,"state":"open","locked":false,"title":"add purple button styles","user":{"login":"jbwyme","id":556882,"avatar_url":"https://avatars.githubusercontent.com/u/556882?v=3","gravatar_id":"","url":"https://api.github.com/users/jbwyme","html_url":"https://github.com/jbwyme","followers_url":"https://api.github.com/users/jbwyme/followers","following_url":"https://api.github.com/users/jbwyme/following{/other_user}","gists_url":"https://api.github.com/users/jbwyme/gists{/gist_id}","starred_url":"https://api.github.com/users/jbwyme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbwyme/subscriptions","organizations_url":"https://api.github.com/users/jbwyme/orgs","repos_url":"https://api.github.com/users/jbwyme/repos","events_url":"https://api.github.com/users/jbwyme/events{/privacy}","received_events_url":"https://api.github.com/users/jbwyme/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-10-04T21:52:47Z","updated_at":"2016-10-04T21:56:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0aa9c6a2a3e966af15327fd914f243aea6a406e9","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/mixpanel/mixpanel-common/pulls/53/commits","review_comments_url":"https://api.github.com/repos/mixpanel/mixpanel-common/pulls/53/comments","review_comment_url":"https://api.github.com/repos/mixpanel/mixpanel-common/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mixpanel/mixpanel-common/issues/53/comments","statuses_url":"https://api.github.com/repos/mixpanel/mixpanel-common/statuses/220e56c2df210da651ea16bf3a69e9950d090fad","head":{"label":"mixpanel:purple-btn","ref":"purple-btn","sha":"220e56c2df210da651ea16bf3a69e9950d090fad","user":{"login":"mixpanel","id":63653,"avatar_url":"https://avatars.githubusercontent.com/u/63653?v=3","gravatar_id":"","url":"https://api.github.com/users/mixpanel","html_url":"https://github.com/mixpanel","followers_url":"https://api.github.com/users/mixpanel/followers","following_url":"https://api.github.com/users/mixpanel/following{/other_user}","gists_url":"https://api.github.com/users/mixpanel/gists{/gist_id}","starred_url":"https://api.github.com/users/mixpanel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mixpanel/subscriptions","organizations_url":"https://api.github.com/users/mixpanel/orgs","repos_url":"https://api.github.com/users/mixpanel/repos","events_url":"https://api.github.com/users/mixpanel/events{/privacy}","received_events_url":"https://api.github.com/users/mixpanel/received_events","type":"Organization","site_admin":false},"repo":{"id":60127506,"name":"mixpanel-common","full_name":"mixpanel/mixpanel-common","owner":{"login":"mixpanel","id":63653,"avatar_url":"https://avatars.githubusercontent.com/u/63653?v=3","gravatar_id":"","url":"https://api.github.com/users/mixpanel","html_url":"https://github.com/mixpanel","followers_url":"https://api.github.com/users/mixpanel/followers","following_url":"https://api.github.com/users/mixpanel/following{/other_user}","gists_url":"https://api.github.com/users/mixpanel/gists{/gist_id}","starred_url":"https://api.github.com/users/mixpanel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mixpanel/subscriptions","organizations_url":"https://api.github.com/users/mixpanel/orgs","repos_url":"https://api.github.com/users/mixpanel/repos","events_url":"https://api.github.com/users/mixpanel/events{/privacy}","received_events_url":"https://api.github.com/users/mixpanel/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mixpanel/mixpanel-common","description":"Contains consistent styles, components, widgets, etc for use across the mixpanel product","fork":false,"url":"https://api.github.com/repos/mixpanel/mixpanel-common","forks_url":"https://api.github.com/repos/mixpanel/mixpanel-common/forks","keys_url":"https://api.github.com/repos/mixpanel/mixpanel-common/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mixpanel/mixpanel-common/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mixpanel/mixpanel-common/teams","hooks_url":"https://api.github.com/repos/mixpanel/mixpanel-common/hooks","issue_events_url":"https://api.github.com/repos/mixpanel/mixpanel-common/issues/events{/number}","events_url":"https://api.github.com/repos/mixpanel/mixpanel-common/events","assignees_url":"https://api.github.com/repos/mixpanel/mixpanel-common/assignees{/user}","branches_url":"https://api.github.com/repos/mixpanel/mixpanel-common/branches{/branch}","tags_url":"https://api.github.com/repos/mixpanel/mixpanel-common/tags","blobs_url":"https://api.github.com/repos/mixpanel/mixpanel-common/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mixpanel/mixpanel-common/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mixpanel/mixpanel-common/git/refs{/sha}","trees_url":"https://api.github.com/repos/mixpanel/mixpanel-common/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mixpanel/mixpanel-common/statuses/{sha}","languages_url":"https://api.github.com/repos/mixpanel/mixpanel-common/languages","stargazers_url":"https://api.github.com/repos/mixpanel/mixpanel-common/stargazers","contributors_url":"https://api.github.com/repos/mixpanel/mixpanel-common/contributors","subscribers_url":"https://api.github.com/repos/mixpanel/mixpanel-common/subscribers","subscription_url":"https://api.github.com/repos/mixpanel/mixpanel-common/subscription","commits_url":"https://api.github.com/repos/mixpanel/mixpanel-common/commits{/sha}","git_commits_url":"https://api.github.com/repos/mixpanel/mixpanel-common/git/commits{/sha}","comments_url":"https://api.github.com/repos/mixpanel/mixpanel-common/comments{/number}","issue_comment_url":"https://api.github.com/repos/mixpanel/mixpanel-common/issues/comments{/number}","contents_url":"https://api.github.com/repos/mixpanel/mixpanel-common/contents/{+path}","compare_url":"https://api.github.com/repos/mixpanel/mixpanel-common/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mixpanel/mixpanel-common/merges","archive_url":"https://api.github.com/repos/mixpanel/mixpanel-common/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mixpanel/mixpanel-common/downloads","issues_url":"https://api.github.com/repos/mixpanel/mixpanel-common/issues{/number}","pulls_url":"https://api.github.com/repos/mixpanel/mixpanel-common/pulls{/number}","milestones_url":"https://api.github.com/repos/mixpanel/mixpanel-common/milestones{/number}","notifications_url":"https://api.github.com/repos/mixpanel/mixpanel-common/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mixpanel/mixpanel-common/labels{/name}","releases_url":"https://api.github.com/repos/mixpanel/mixpanel-common/releases{/id}","deployments_url":"https://api.github.com/repos/mixpanel/mixpanel-common/deployments","created_at":"2016-05-31T22:18:16Z","updated_at":"2016-06-08T00:58:48Z","pushed_at":"2016-10-04T21:52:48Z","git_url":"git://github.com/mixpanel/mixpanel-common.git","ssh_url":"git@github.com:mixpanel/mixpanel-common.git","clone_url":"https://github.com/mixpanel/mixpanel-common.git","svn_url":"https://github.com/mixpanel/mixpanel-common","homepage":null,"size":192,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":5,"forks":1,"open_issues":5,"watchers":0,"default_branch":"master"}},"base":{"label":"mixpanel:master","ref":"master","sha":"78d74a6a505abb3882e0b16e3216d8aea1a321b0","user":{"login":"mixpanel","id":63653,"avatar_url":"https://avatars.githubusercontent.com/u/63653?v=3","gravatar_id":"","url":"https://api.github.com/users/mixpanel","html_url":"https://github.com/mixpanel","followers_url":"https://api.github.com/users/mixpanel/followers","following_url":"https://api.github.com/users/mixpanel/following{/other_user}","gists_url":"https://api.github.com/users/mixpanel/gists{/gist_id}","starred_url":"https://api.github.com/users/mixpanel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mixpanel/subscriptions","organizations_url":"https://api.github.com/users/mixpanel/orgs","repos_url":"https://api.github.com/users/mixpanel/repos","events_url":"https://api.github.com/users/mixpanel/events{/privacy}","received_events_url":"https://api.github.com/users/mixpanel/received_events","type":"Organization","site_admin":false},"repo":{"id":60127506,"name":"mixpanel-common","full_name":"mixpanel/mixpanel-common","owner":{"login":"mixpanel","id":63653,"avatar_url":"https://avatars.githubusercontent.com/u/63653?v=3","gravatar_id":"","url":"https://api.github.com/users/mixpanel","html_url":"https://github.com/mixpanel","followers_url":"https://api.github.com/users/mixpanel/followers","following_url":"https://api.github.com/users/mixpanel/following{/other_user}","gists_url":"https://api.github.com/users/mixpanel/gists{/gist_id}","starred_url":"https://api.github.com/users/mixpanel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mixpanel/subscriptions","organizations_url":"https://api.github.com/users/mixpanel/orgs","repos_url":"https://api.github.com/users/mixpanel/repos","events_url":"https://api.github.com/users/mixpanel/events{/privacy}","received_events_url":"https://api.github.com/users/mixpanel/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mixpanel/mixpanel-common","description":"Contains consistent styles, components, widgets, etc for use across the mixpanel product","fork":false,"url":"https://api.github.com/repos/mixpanel/mixpanel-common","forks_url":"https://api.github.com/repos/mixpanel/mixpanel-common/forks","keys_url":"https://api.github.com/repos/mixpanel/mixpanel-common/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mixpanel/mixpanel-common/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mixpanel/mixpanel-common/teams","hooks_url":"https://api.github.com/repos/mixpanel/mixpanel-common/hooks","issue_events_url":"https://api.github.com/repos/mixpanel/mixpanel-common/issues/events{/number}","events_url":"https://api.github.com/repos/mixpanel/mixpanel-common/events","assignees_url":"https://api.github.com/repos/mixpanel/mixpanel-common/assignees{/user}","branches_url":"https://api.github.com/repos/mixpanel/mixpanel-common/branches{/branch}","tags_url":"https://api.github.com/repos/mixpanel/mixpanel-common/tags","blobs_url":"https://api.github.com/repos/mixpanel/mixpanel-common/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mixpanel/mixpanel-common/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mixpanel/mixpanel-common/git/refs{/sha}","trees_url":"https://api.github.com/repos/mixpanel/mixpanel-common/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mixpanel/mixpanel-common/statuses/{sha}","languages_url":"https://api.github.com/repos/mixpanel/mixpanel-common/languages","stargazers_url":"https://api.github.com/repos/mixpanel/mixpanel-common/stargazers","contributors_url":"https://api.github.com/repos/mixpanel/mixpanel-common/contributors","subscribers_url":"https://api.github.com/repos/mixpanel/mixpanel-common/subscribers","subscription_url":"https://api.github.com/repos/mixpanel/mixpanel-common/subscription","commits_url":"https://api.github.com/repos/mixpanel/mixpanel-common/commits{/sha}","git_commits_url":"https://api.github.com/repos/mixpanel/mixpanel-common/git/commits{/sha}","comments_url":"https://api.github.com/repos/mixpanel/mixpanel-common/comments{/number}","issue_comment_url":"https://api.github.com/repos/mixpanel/mixpanel-common/issues/comments{/number}","contents_url":"https://api.github.com/repos/mixpanel/mixpanel-common/contents/{+path}","compare_url":"https://api.github.com/repos/mixpanel/mixpanel-common/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mixpanel/mixpanel-common/merges","archive_url":"https://api.github.com/repos/mixpanel/mixpanel-common/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mixpanel/mixpanel-common/downloads","issues_url":"https://api.github.com/repos/mixpanel/mixpanel-common/issues{/number}","pulls_url":"https://api.github.com/repos/mixpanel/mixpanel-common/pulls{/number}","milestones_url":"https://api.github.com/repos/mixpanel/mixpanel-common/milestones{/number}","notifications_url":"https://api.github.com/repos/mixpanel/mixpanel-common/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mixpanel/mixpanel-common/labels{/name}","releases_url":"https://api.github.com/repos/mixpanel/mixpanel-common/releases{/id}","deployments_url":"https://api.github.com/repos/mixpanel/mixpanel-common/deployments","created_at":"2016-05-31T22:18:16Z","updated_at":"2016-06-08T00:58:48Z","pushed_at":"2016-10-04T21:52:48Z","git_url":"git://github.com/mixpanel/mixpanel-common.git","ssh_url":"git@github.com:mixpanel/mixpanel-common.git","clone_url":"https://github.com/mixpanel/mixpanel-common.git","svn_url":"https://github.com/mixpanel/mixpanel-common","homepage":null,"size":192,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":5,"forks":1,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mixpanel/mixpanel-common/pulls/53"},"html":{"href":"https://github.com/mixpanel/mixpanel-common/pull/53"},"issue":{"href":"https://api.github.com/repos/mixpanel/mixpanel-common/issues/53"},"comments":{"href":"https://api.github.com/repos/mixpanel/mixpanel-common/issues/53/comments"},"review_comments":{"href":"https://api.github.com/repos/mixpanel/mixpanel-common/pulls/53/comments"},"review_comment":{"href":"https://api.github.com/repos/mixpanel/mixpanel-common/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mixpanel/mixpanel-common/pulls/53/commits"},"statuses":{"href":"https://api.github.com/repos/mixpanel/mixpanel-common/statuses/220e56c2df210da651ea16bf3a69e9950d090fad"}}}}
{"actor":{"display_login":"tdumitrescu"}}