{"pull_request":{"state":"open","user":{"avatar_url":"https://secure.gravatar.com/avatar/3a2d8baf4d1c4068415b1004b72d1386?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"3a2d8baf4d1c4068415b1004b72d1386","url":"https://api.github.com/users/duclet","login":"duclet","id":37915},"deletions":1,"merged_by":null,"updated_at":"2011-11-11T23:31:57Z","diff_url":"https://github.com/jquerytools/jquerytools/pull/560.diff","commits":1,"base":{"ref":"dev","user":{"avatar_url":"https://secure.gravatar.com/avatar/01379a05fffcac6a8b56d590248b421c?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"01379a05fffcac6a8b56d590248b421c","url":"https://api.github.com/users/jquerytools","login":"jquerytools","id":134790},"repo":{"name":"jquerytools","master_branch":null,"pushed_at":"2011-10-31T02:32:08Z","fork":false,"clone_url":"https://github.com/jquerytools/jquerytools.git","open_issues":129,"homepage":"http://flowplayer.org/tools/","updated_at":"2011-11-11T23:25:34Z","private":false,"language":"JavaScript","svn_url":"https://svn.github.com/jquerytools/jquerytools","forks":185,"url":"https://api.github.com/repos/jquerytools/jquerytools","owner":{"avatar_url":"https://secure.gravatar.com/avatar/01379a05fffcac6a8b56d590248b421c?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"01379a05fffcac6a8b56d590248b421c","url":"https://api.github.com/users/jquerytools","login":"jquerytools","id":134790},"html_url":"https://github.com/jquerytools/jquerytools","description":"The missing UI library for the Web","size":800,"git_url":"git://github.com/jquerytools/jquerytools.git","id":326127,"watchers":1108,"created_at":"2009-10-04T08:14:05Z","ssh_url":"git@github.com:jquerytools/jquerytools.git"},"label":"jquerytools:dev","sha":"46b8662c14889779ee30b68db90903369db525c2"},"closed_at":null,"comments":0,"head":{"ref":"dev","user":{"avatar_url":"https://secure.gravatar.com/avatar/3a2d8baf4d1c4068415b1004b72d1386?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"3a2d8baf4d1c4068415b1004b72d1386","url":"https://api.github.com/users/duclet","login":"duclet","id":37915},"repo":{"name":"jquerytools","master_branch":null,"pushed_at":"2011-11-11T23:28:28Z","fork":true,"clone_url":"https://github.com/duclet/jquerytools.git","open_issues":0,"homepage":"http://flowplayer.org/tools/","updated_at":"2011-11-11T23:28:30Z","private":false,"language":"JavaScript","svn_url":"https://svn.github.com/duclet/jquerytools","forks":0,"url":"https://api.github.com/repos/duclet/jquerytools","owner":{"avatar_url":"https://secure.gravatar.com/avatar/3a2d8baf4d1c4068415b1004b72d1386?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"3a2d8baf4d1c4068415b1004b72d1386","url":"https://api.github.com/users/duclet","login":"duclet","id":37915},"html_url":"https://github.com/duclet/jquerytools","description":"The missing UI library for the Web","size":124,"git_url":"git://github.com/duclet/jquerytools.git","id":2759252,"watchers":1,"created_at":"2011-11-11T23:25:33Z","ssh_url":"git@github.com:duclet/jquerytools.git"},"label":"duclet:dev","sha":"6c4083e48fcfc6d1fc5e448de878faf261223ea5"},"url":"https://api.github.com/repos/jquerytools/jquerytools/pulls/560","additions":1,"merged":false,"merged_at":null,"body":"So what I noticed is that the current check to see if a user clicks outside of an overlay (so it can be closed) doesn't work if the overlay is a direct child of a body and probably some other cases as well. I think this check is better because it takes the overlay, filter it was has to see if the element that was clicked on (event.target) is a descendant of the overlay. If it isn't, then that mean the user had clicked on something outside of the overlay.","_links":{"comments":{"href":"https://api.github.com/repos/jquerytools/jquerytools/issues/560/comments"},"html":{"href":"https://github.com/jquerytools/jquerytools/pull/560"},"review_comments":{"href":"https://api.github.com/repos/jquerytools/jquerytools/pulls/560/comments"},"self":{"href":"https://api.github.com/repos/jquerytools/jquerytools/pulls/560"}},"issue_url":"https://github.com/jquerytools/jquerytools/issues/560","html_url":"https://github.com/jquerytools/jquerytools/pull/560","review_comments":0,"title":"Better check for click outside of an overlay","number":560,"mergeable":null,"changed_files":1,"id":487974,"patch_url":"https://github.com/jquerytools/jquerytools/pull/560.patch","created_at":"2011-11-11T23:31:57Z"},"action":"opened","number":560}