Skip to content

Commit 19a9d57

Browse files
jscheelscottgonzalez
authored andcommitted
Draggable: Always clean up iframes. Fixes #8555 - Draggable: iframeFix option leaves iframes in DOM when using a selector.
1 parent e1fd8ea commit 19a9d57

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

ui/jquery.ui.draggable.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -229,11 +229,10 @@ $.widget("ui.draggable", $.ui.mouse, {
229229
},
230230

231231
_mouseUp: function(event) {
232-
if (this.options.iframeFix === true) {
233-
$("div.ui-draggable-iframeFix").each(function() {
234-
this.parentNode.removeChild(this);
235-
}); //Remove frame helpers
236-
}
232+
//Remove frame helpers
233+
$("div.ui-draggable-iframeFix").each(function() {
234+
this.parentNode.removeChild(this);
235+
});
237236

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

0 commit comments

Comments
 (0)