Skip to content

Commit 65bada3

Browse files
jscheelscottgonzalez
authored andcommitted
Draggable: Always clean up iframes. Fixes #8555 - Draggable: iframeFix option leaves iframes in DOM when using a selector.
(cherry picked from commit 19a9d57)
1 parent 1cbd513 commit 65bada3

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
@@ -237,11 +237,10 @@ $.widget("ui.draggable", $.ui.mouse, {
237237
},
238238

239239
_mouseUp: function(event) {
240-
if (this.options.iframeFix === true) {
241-
$("div.ui-draggable-iframeFix").each(function() {
242-
this.parentNode.removeChild(this);
243-
}); //Remove frame helpers
244-
}
240+
//Remove frame helpers
241+
$("div.ui-draggable-iframeFix").each(function() {
242+
this.parentNode.removeChild(this);
243+
});
245244

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

0 commit comments

Comments
 (0)