From 19a9d57868636eb1250143ab8e69e6748e6f82f1 Mon Sep 17 00:00:00 2001 From: "Jared A. Scheel" Date: Thu, 6 Sep 2012 12:30:11 -0400 Subject: [PATCH] Draggable: Always clean up iframes. Fixes #8555 - Draggable: iframeFix option leaves iframes in DOM when using a selector. --- ui/jquery.ui.draggable.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/ui/jquery.ui.draggable.js b/ui/jquery.ui.draggable.js index b693dccae..5950ca5d5 100644 --- a/ui/jquery.ui.draggable.js +++ b/ui/jquery.ui.draggable.js @@ -229,11 +229,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);