aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJared A. Scheel <jared@jaredscheel.com>2012-09-06 12:30:11 -0400
committerScott González <scott.gonzalez@gmail.com>2012-09-06 12:30:11 -0400
commit19a9d57868636eb1250143ab8e69e6748e6f82f1 (patch)
treee387916bdca4742a64ba51b349d3be31ba42ad4c
parente1fd8ea6b3e05d52843864bdc62b2c62e39e1af3 (diff)
downloadjquery-ui-19a9d57868636eb1250143ab8e69e6748e6f82f1.tar.gz
jquery-ui-19a9d57868636eb1250143ab8e69e6748e6f82f1.zip
Draggable: Always clean up iframes. Fixes #8555 - Draggable: iframeFix option leaves iframes in DOM when using a selector.
-rw-r--r--ui/jquery.ui.draggable.js9
1 files 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);