Draggable: Only run iframeFix logic if the option is truthy. Fixes #7632 - Draggable: iframeFix always runs with old versions of jQuery.

This commit is contained in:
Scott González 2011-08-12 10:05:04 -04:00
parent 7c15d3c19f
commit 930c65011c

View File

@ -80,6 +80,7 @@ $.widget("ui.draggable", $.ui.mouse, {
if (!this.handle)
return false;
if ( o.iframeFix ) {
$(o.iframeFix === true ? "iframe" : o.iframeFix).each(function() {
$('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>')
.css({
@ -89,6 +90,7 @@ $.widget("ui.draggable", $.ui.mouse, {
.css($(this).offset())
.appendTo("body");
});
}
return true;