{"pull_request":{"state":"closed","deletions":2,"user":{"avatar_url":"https://secure.gravatar.com/avatar/258b9e6c34849e1286236cc2c3ba1d0e?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"258b9e6c34849e1286236cc2c3ba1d0e","url":"https://api.github.com/users/maljub01","login":"maljub01","id":350635},"merged_by":{"avatar_url":"https://secure.gravatar.com/avatar/35da631954825179143c86fa42a10954?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"35da631954825179143c86fa42a10954","url":"https://api.github.com/users/scottgonzalez","login":"scottgonzalez","id":141167},"updated_at":"2011-11-17T15:31:03Z","base":{"ref":"master","user":{"avatar_url":"https://secure.gravatar.com/avatar/6906f317a4733f4379b06c32229ef02f?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-orgs.png","gravatar_id":"6906f317a4733f4379b06c32229ef02f","url":"https://api.github.com/users/jquery","login":"jquery","id":70142},"repo":{"name":"jquery-ui","pushed_at":"2011-11-17T15:31:03Z","master_branch":null,"fork":false,"updated_at":"2011-11-17T15:31:03Z","open_issues":50,"homepage":"http://jqueryui.com/","clone_url":"https://github.com/jquery/jquery-ui.git","language":"JavaScript","svn_url":"https://svn.github.com/jquery/jquery-ui","private":false,"forks":1018,"url":"https://api.github.com/repos/jquery/jquery-ui","owner":{"avatar_url":"https://secure.gravatar.com/avatar/6906f317a4733f4379b06c32229ef02f?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-orgs.png","gravatar_id":"6906f317a4733f4379b06c32229ef02f","url":"https://api.github.com/users/jquery","login":"jquery","id":70142},"html_url":"https://github.com/jquery/jquery-ui","description":"The official jQuery user interface library.","size":9300,"id":478996,"watchers":3997,"git_url":"git://github.com/jquery/jquery-ui.git","created_at":"2010-01-19T14:40:34Z","ssh_url":"git@github.com:jquery/jquery-ui.git"},"label":"jquery:master","sha":"bdd602e21bde0fee9879cc3b5d708c1ab86fb3fc"},"closed_at":"2011-11-17T15:31:03Z","commits":1,"comments":1,"diff_url":"https://github.com/jquery/jquery-ui/pull/501.diff","head":{"ref":"master","user":{"avatar_url":"https://secure.gravatar.com/avatar/258b9e6c34849e1286236cc2c3ba1d0e?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"258b9e6c34849e1286236cc2c3ba1d0e","url":"https://api.github.com/users/maljub01","login":"maljub01","id":350635},"repo":{"name":"jquery-ui","pushed_at":"2011-10-17T16:15:23Z","master_branch":null,"fork":true,"updated_at":"2011-10-17T16:15:25Z","open_issues":0,"homepage":"http://jqueryui.com/","clone_url":"https://github.com/maljub01/jquery-ui.git","language":"JavaScript","svn_url":"https://svn.github.com/maljub01/jquery-ui","private":false,"forks":0,"url":"https://api.github.com/repos/maljub01/jquery-ui","owner":{"avatar_url":"https://secure.gravatar.com/avatar/258b9e6c34849e1286236cc2c3ba1d0e?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"258b9e6c34849e1286236cc2c3ba1d0e","url":"https://api.github.com/users/maljub01","login":"maljub01","id":350635},"html_url":"https://github.com/maljub01/jquery-ui","description":"The official jQuery user interface library.","size":172,"id":2592298,"watchers":1,"git_url":"git://github.com/maljub01/jquery-ui.git","created_at":"2011-10-17T14:29:05Z","ssh_url":"git@github.com:maljub01/jquery-ui.git"},"label":"maljub01:master","sha":"c3c84002898163c3c6625a4fedcddf1434f8e448"},"additions":2,"url":"https://api.github.com/repos/jquery/jquery-ui/pulls/501","merged":true,"body":"Fixed ticket: http://bugs.jqueryui.com/ticket/7800\r\n\r\nTest case here:  http://jsfiddle.net/maljub01/btESH/\r\n\r\nAnother (more useful) test case:  http://jsfiddle.net/maljub01/mJZva/\r\n\r\nThis fix has two parts, the first, in Draggable, prevents it from aborting mouseStop when the element is gone if the helper is !== \"original\". Returning the modified if statement to the way it looked in v1.8.16.\r\n\r\nThe second part, in Core, was necessary for IE8 and older versions of IE. This is because for old IE, parentNode returns a node with nodeType === 11 (DOCUMENT_FRAGMENT_NODE) for elements that have no parent.\r\n\r\nAt first I wanted to add the nodeType === 11 check to the modified line in Draggable to avoid modifying Core. However, the error persists even if the check was added there.\r\n\r\nHere's a test case, with the option of monkey-patching jQuery UI with this commit's modifications: http://jsfiddle.net/maljub01/ahyfr/","merged_at":"2011-11-17T15:31:03Z","issue_url":"https://github.com/jquery/jquery-ui/issues/501","review_comments":0,"_links":{"comments":{"href":"https://api.github.com/repos/jquery/jquery-ui/issues/501/comments"},"html":{"href":"https://github.com/jquery/jquery-ui/pull/501"},"review_comments":{"href":"https://api.github.com/repos/jquery/jquery-ui/pulls/501/comments"},"self":{"href":"https://api.github.com/repos/jquery/jquery-ui/pulls/501"}},"html_url":"https://github.com/jquery/jquery-ui/pull/501","title":"Fixed ticket #7800 - Draggable helper=\"clone\" doesn't remove the dragged clone if original element is removed upon drop","number":501,"mergeable":null,"id":408545,"changed_files":2,"patch_url":"https://github.com/jquery/jquery-ui/pull/501.patch","created_at":"2011-10-17T16:42:58Z"},"action":"closed","number":501}