Draggable: Always clean up iframes. Fixes #8555 - Draggable: iframeFix option leaves iframes in DOM when using a selector.

This commit is contained in:
Jared A. Scheel 2012-09-06 12:30:11 -04:00 committed by Scott González
parent e1fd8ea6b3
commit 19a9d57868

View File

@ -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);