Skip to content

Commit

Permalink
Draggable: Always clean up iframes. Fixes #8555 - Draggable: iframeFi…
Browse files Browse the repository at this point in the history
…x option leaves iframes in DOM when using a selector.

(cherry picked from commit 19a9d57)
  • Loading branch information
jscheel authored and scottgonzalez committed Sep 6, 2012
1 parent 1cbd513 commit 65bada3
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions ui/jquery.ui.draggable.js
Expand Up @@ -237,11 +237,10 @@ $.widget("ui.draggable", $.ui.mouse, {
},

_mouseUp: function(event) {
if (this.options.iframeFix === true) {
$("div.ui-draggable-iframeFix").each(function() {
this.parentNode.removeChild(this);
}); //Remove frame helpers
}
//Remove frame helpers
$("div.ui-draggable-iframeFix").each(function() {
this.parentNode.removeChild(this);
});

//If the ddmanager is used for droppables, inform the manager that dragging has stopped (see #5003)
if( $.ui.ddmanager ) $.ui.ddmanager.dragStop(this, event);
Expand Down

0 comments on commit 65bada3

Please sign in to comment.