Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Draggable: Always clean up iframes. Fixes #8555 - Draggable: iframeFi…

…x option leaves iframes in DOM when using a selector.

(cherry picked from commit 19a9d57)
  • Loading branch information...
commit 65bada311322706c870c1af78529c9c23d66bff3 1 parent 1cbd513
@jscheel jscheel authored scottgonzalez committed
Showing with 4 additions and 5 deletions.
  1. +4 −5 ui/jquery.ui.draggable.js
View
9 ui/jquery.ui.draggable.js
@@ -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);
Please sign in to comment.
Something went wrong with that request. Please try again.