Skip to content

Commit 24d9141

Browse files
committed
Dialog: Use consistent code for appending to body
1 parent eb938a6 commit 24d9141

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/jquery.ui.dialog.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@ $.widget("ui.dialog", {
676676
// reuse old instances due to IE memory leak with alpha transparency (see #5185)
677677
var $el = this.overlay = ( $.ui.dialog.overlay.oldInstances.pop() || $( "<div>" ).addClass( "ui-widget-overlay ui-front" ) );
678678

679-
$el.appendTo( document.body );
679+
$el.appendTo( this.document[ 0 ].body );
680680

681681
this._on( $el, {
682682
mousedown: "_keepFocus"

0 commit comments

Comments
 (0)