{"action":"opened","number":74,"pull_request":{"url":"https://api.github.com/repos/voronianski/jquery.avgrund.js/pulls/74","id":40348013,"html_url":"https://github.com/voronianski/jquery.avgrund.js/pull/74","diff_url":"https://github.com/voronianski/jquery.avgrund.js/pull/74.diff","patch_url":"https://github.com/voronianski/jquery.avgrund.js/pull/74.patch","issue_url":"https://api.github.com/repos/voronianski/jquery.avgrund.js/issues/74","number":74,"state":"open","locked":false,"title":"Add onClosing Method","user":{"login":"Golgothan3","id":4001416,"avatar_url":"https://avatars.githubusercontent.com/u/4001416?v=3","gravatar_id":"","url":"https://api.github.com/users/Golgothan3","html_url":"https://github.com/Golgothan3","followers_url":"https://api.github.com/users/Golgothan3/followers","following_url":"https://api.github.com/users/Golgothan3/following{/other_user}","gists_url":"https://api.github.com/users/Golgothan3/gists{/gist_id}","starred_url":"https://api.github.com/users/Golgothan3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Golgothan3/subscriptions","organizations_url":"https://api.github.com/users/Golgothan3/orgs","repos_url":"https://api.github.com/users/Golgothan3/repos","events_url":"https://api.github.com/users/Golgothan3/events{/privacy}","received_events_url":"https://api.github.com/users/Golgothan3/received_events","type":"User","site_admin":false},"body":"I added this method to options and it fires at the beginning of the deactivate function. The purpose of this is so that logic in the function can be fired before the events are unbound and the popup is destroyed. The primary feature of this is that if the onClosing method returns false, it won't trigger the rest of the deactivate method, and will essentially prevent the closing. My prime example of this feature was \r\n`return confirm(\"Are you sure you want to close this?\")`\r\nIf the use clicks cancel or exits the dialog, it returns false, and the popup doesn't close. There are plenty of other ways to use it though.","created_at":"2015-07-20T12:47:27Z","updated_at":"2015-07-20T12:47:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/voronianski/jquery.avgrund.js/pulls/74/commits","review_comments_url":"https://api.github.com/repos/voronianski/jquery.avgrund.js/pulls/74/comments","review_comment_url":"https://api.github.com/repos/voronianski/jquery.avgrund.js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/voronianski/jquery.avgrund.js/issues/74/comments","statuses_url":"https://api.github.com/repos/voronianski/jquery.avgrund.js/statuses/17af9b85c8ceed7ad55e3bfa3b800c0128acdf9b","head":{"label":"Golgothan3:master","ref":"master","sha":"17af9b85c8ceed7ad55e3bfa3b800c0128acdf9b","user":{"login":"Golgothan3","id":4001416,"avatar_url":"https://avatars.githubusercontent.com/u/4001416?v=3","gravatar_id":"","url":"https://api.github.com/users/Golgothan3","html_url":"https://github.com/Golgothan3","followers_url":"https://api.github.com/users/Golgothan3/followers","following_url":"https://api.github.com/users/Golgothan3/following{/other_user}","gists_url":"https://api.github.com/users/Golgothan3/gists{/gist_id}","starred_url":"https://api.github.com/users/Golgothan3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Golgothan3/subscriptions","organizations_url":"https://api.github.com/users/Golgothan3/orgs","repos_url":"https://api.github.com/users/Golgothan3/repos","events_url":"https://api.github.com/users/Golgothan3/events{/privacy}","received_events_url":"https://api.github.com/users/Golgothan3/received_events","type":"User","site_admin":false},"repo":{"id":39382694,"name":"jquery.avgrund.js","full_name":"Golgothan3/jquery.avgrund.js","owner":{"login":"Golgothan3","id":4001416,"avatar_url":"https://avatars.githubusercontent.com/u/4001416?v=3","gravatar_id":"","url":"https://api.github.com/users/Golgothan3","html_url":"https://github.com/Golgothan3","followers_url":"https://api.github.com/users/Golgothan3/followers","following_url":"https://api.github.com/users/Golgothan3/following{/other_user}","gists_url":"https://api.github.com/users/Golgothan3/gists{/gist_id}","starred_url":"https://api.github.com/users/Golgothan3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Golgothan3/subscriptions","organizations_url":"https://api.github.com/users/Golgothan3/orgs","repos_url":"https://api.github.com/users/Golgothan3/repos","events_url":"https://api.github.com/users/Golgothan3/events{/privacy}","received_events_url":"https://api.github.com/users/Golgothan3/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Golgothan3/jquery.avgrund.js","description":"Avgrund is a jQuery plugin with new modal concept for popups","fork":true,"url":"https://api.github.com/repos/Golgothan3/jquery.avgrund.js","forks_url":"https://api.github.com/repos/Golgothan3/jquery.avgrund.js/forks","keys_url":"https://api.github.com/repos/Golgothan3/jquery.avgrund.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Golgothan3/jquery.avgrund.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Golgothan3/jquery.avgrund.js/teams","hooks_url":"https://api.github.com/repos/Golgothan3/jquery.avgrund.js/hooks","issue_events_url":"https://api.github.com/repos/Golgothan3/jquery.avgrund.js/issues/events{/number}","events_url":"https://api.github.com/repos/Golgothan3/jquery.avgrund.js/events","assignees_url":"https://api.github.com/repos/Golgothan3/jquery.avgrund.js/assignees{/user}","branches_url":"https://api.github.com/repos/Golgothan3/jquery.avgrund.js/branches{/branch}","tags_url":"https://api.github.com/repos/Golgothan3/jquery.avgrund.js/tags","blobs_url":"https://api.github.com/repos/Golgothan3/jquery.avgrund.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Golgothan3/jquery.avgrund.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Golgothan3/jquery.avgrund.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/Golgothan3/jquery.avgrund.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Golgothan3/jquery.avgrund.js/statuses/{sha}","languages_url":"https://api.github.com/repos/Golgothan3/jquery.avgrund.js/languages","stargazers_url":"https://api.github.com/repos/Golgothan3/jquery.avgrund.js/stargazers","contributors_url":"https://api.github.com/repos/Golgothan3/jquery.avgrund.js/contributors","subscribers_url":"https://api.github.com/repos/Golgothan3/jquery.avgrund.js/subscribers","subscription_url":"https://api.github.com/repos/Golgothan3/jquery.avgrund.js/subscription","commits_url":"https://api.github.com/repos/Golgothan3/jquery.avgrund.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/Golgothan3/jquery.avgrund.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/Golgothan3/jquery.avgrund.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/Golgothan3/jquery.avgrund.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/Golgothan3/jquery.avgrund.js/contents/{+path}","compare_url":"https://api.github.com/repos/Golgothan3/jquery.avgrund.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Golgothan3/jquery.avgrund.js/merges","archive_url":"https://api.github.com/repos/Golgothan3/jquery.avgrund.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Golgothan3/jquery.avgrund.js/downloads","issues_url":"https://api.github.com/repos/Golgothan3/jquery.avgrund.js/issues{/number}","pulls_url":"https://api.github.com/repos/Golgothan3/jquery.avgrund.js/pulls{/number}","milestones_url":"https://api.github.com/repos/Golgothan3/jquery.avgrund.js/milestones{/number}","notifications_url":"https://api.github.com/repos/Golgothan3/jquery.avgrund.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Golgothan3/jquery.avgrund.js/labels{/name}","releases_url":"https://api.github.com/repos/Golgothan3/jquery.avgrund.js/releases{/id}","created_at":"2015-07-20T12:35:19Z","updated_at":"2015-07-20T12:35:20Z","pushed_at":"2015-07-20T12:40:55Z","git_url":"git://github.com/Golgothan3/jquery.avgrund.js.git","ssh_url":"git@github.com:Golgothan3/jquery.avgrund.js.git","clone_url":"https://github.com/Golgothan3/jquery.avgrund.js.git","svn_url":"https://github.com/Golgothan3/jquery.avgrund.js","homepage":"http://labs.voronianski.com/jquery.avgrund.js/","size":152,"stargazers_count":0,"watchers_count":0,"language":"CSS","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":"voronianski:master","ref":"master","sha":"f9f84b0af15bd95b1ededa641281ce8919e93246","user":{"login":"voronianski","id":974035,"avatar_url":"https://avatars.githubusercontent.com/u/974035?v=3","gravatar_id":"","url":"https://api.github.com/users/voronianski","html_url":"https://github.com/voronianski","followers_url":"https://api.github.com/users/voronianski/followers","following_url":"https://api.github.com/users/voronianski/following{/other_user}","gists_url":"https://api.github.com/users/voronianski/gists{/gist_id}","starred_url":"https://api.github.com/users/voronianski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/voronianski/subscriptions","organizations_url":"https://api.github.com/users/voronianski/orgs","repos_url":"https://api.github.com/users/voronianski/repos","events_url":"https://api.github.com/users/voronianski/events{/privacy}","received_events_url":"https://api.github.com/users/voronianski/received_events","type":"User","site_admin":false},"repo":{"id":5553935,"name":"jquery.avgrund.js","full_name":"voronianski/jquery.avgrund.js","owner":{"login":"voronianski","id":974035,"avatar_url":"https://avatars.githubusercontent.com/u/974035?v=3","gravatar_id":"","url":"https://api.github.com/users/voronianski","html_url":"https://github.com/voronianski","followers_url":"https://api.github.com/users/voronianski/followers","following_url":"https://api.github.com/users/voronianski/following{/other_user}","gists_url":"https://api.github.com/users/voronianski/gists{/gist_id}","starred_url":"https://api.github.com/users/voronianski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/voronianski/subscriptions","organizations_url":"https://api.github.com/users/voronianski/orgs","repos_url":"https://api.github.com/users/voronianski/repos","events_url":"https://api.github.com/users/voronianski/events{/privacy}","received_events_url":"https://api.github.com/users/voronianski/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/voronianski/jquery.avgrund.js","description":"Avgrund is a jQuery plugin with new modal concept for popups","fork":false,"url":"https://api.github.com/repos/voronianski/jquery.avgrund.js","forks_url":"https://api.github.com/repos/voronianski/jquery.avgrund.js/forks","keys_url":"https://api.github.com/repos/voronianski/jquery.avgrund.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/voronianski/jquery.avgrund.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/voronianski/jquery.avgrund.js/teams","hooks_url":"https://api.github.com/repos/voronianski/jquery.avgrund.js/hooks","issue_events_url":"https://api.github.com/repos/voronianski/jquery.avgrund.js/issues/events{/number}","events_url":"https://api.github.com/repos/voronianski/jquery.avgrund.js/events","assignees_url":"https://api.github.com/repos/voronianski/jquery.avgrund.js/assignees{/user}","branches_url":"https://api.github.com/repos/voronianski/jquery.avgrund.js/branches{/branch}","tags_url":"https://api.github.com/repos/voronianski/jquery.avgrund.js/tags","blobs_url":"https://api.github.com/repos/voronianski/jquery.avgrund.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/voronianski/jquery.avgrund.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/voronianski/jquery.avgrund.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/voronianski/jquery.avgrund.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/voronianski/jquery.avgrund.js/statuses/{sha}","languages_url":"https://api.github.com/repos/voronianski/jquery.avgrund.js/languages","stargazers_url":"https://api.github.com/repos/voronianski/jquery.avgrund.js/stargazers","contributors_url":"https://api.github.com/repos/voronianski/jquery.avgrund.js/contributors","subscribers_url":"https://api.github.com/repos/voronianski/jquery.avgrund.js/subscribers","subscription_url":"https://api.github.com/repos/voronianski/jquery.avgrund.js/subscription","commits_url":"https://api.github.com/repos/voronianski/jquery.avgrund.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/voronianski/jquery.avgrund.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/voronianski/jquery.avgrund.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/voronianski/jquery.avgrund.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/voronianski/jquery.avgrund.js/contents/{+path}","compare_url":"https://api.github.com/repos/voronianski/jquery.avgrund.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/voronianski/jquery.avgrund.js/merges","archive_url":"https://api.github.com/repos/voronianski/jquery.avgrund.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/voronianski/jquery.avgrund.js/downloads","issues_url":"https://api.github.com/repos/voronianski/jquery.avgrund.js/issues{/number}","pulls_url":"https://api.github.com/repos/voronianski/jquery.avgrund.js/pulls{/number}","milestones_url":"https://api.github.com/repos/voronianski/jquery.avgrund.js/milestones{/number}","notifications_url":"https://api.github.com/repos/voronianski/jquery.avgrund.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/voronianski/jquery.avgrund.js/labels{/name}","releases_url":"https://api.github.com/repos/voronianski/jquery.avgrund.js/releases{/id}","created_at":"2012-08-25T18:36:52Z","updated_at":"2015-07-15T02:51:35Z","pushed_at":"2015-06-12T08:06:50Z","git_url":"git://github.com/voronianski/jquery.avgrund.js.git","ssh_url":"git@github.com:voronianski/jquery.avgrund.js.git","clone_url":"https://github.com/voronianski/jquery.avgrund.js.git","svn_url":"https://github.com/voronianski/jquery.avgrund.js","homepage":"http://labs.voronianski.com/jquery.avgrund.js/","size":678,"stargazers_count":1664,"watchers_count":1664,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":327,"mirror_url":null,"open_issues_count":14,"forks":327,"open_issues":14,"watchers":1664,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/voronianski/jquery.avgrund.js/pulls/74"},"html":{"href":"https://github.com/voronianski/jquery.avgrund.js/pull/74"},"issue":{"href":"https://api.github.com/repos/voronianski/jquery.avgrund.js/issues/74"},"comments":{"href":"https://api.github.com/repos/voronianski/jquery.avgrund.js/issues/74/comments"},"review_comments":{"href":"https://api.github.com/repos/voronianski/jquery.avgrund.js/pulls/74/comments"},"review_comment":{"href":"https://api.github.com/repos/voronianski/jquery.avgrund.js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/voronianski/jquery.avgrund.js/pulls/74/commits"},"statuses":{"href":"https://api.github.com/repos/voronianski/jquery.avgrund.js/statuses/17af9b85c8ceed7ad55e3bfa3b800c0128acdf9b"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":9,"deletions":1,"changed_files":2}}