]> source.dussan.org Git - jquery-ui.git/commitdiff
Draggable: Always clean up iframes. Fixes #8555 - Draggable: iframeFix option leaves...
authorJared A. Scheel <jared@jaredscheel.com>
Thu, 6 Sep 2012 16:30:11 +0000 (12:30 -0400)
committerScott González <scott.gonzalez@gmail.com>
Thu, 6 Sep 2012 16:30:11 +0000 (12:30 -0400)
ui/jquery.ui.draggable.js

index b693dccaee5cecced943bb803967340e2e9475e2..5950ca5d53ef26537ca7a1fd279a637e73640f2b 100644 (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);