From 24d9141597f16fdc84b1412683a7e66388f5f622 Mon Sep 17 00:00:00 2001 From: Jörn Zaefferer Date: Thu, 29 Nov 2012 17:40:31 +0100 Subject: Dialog: Use consistent code for appending to body --- ui/jquery.ui.dialog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/jquery.ui.dialog.js b/ui/jquery.ui.dialog.js index 808d31d5b..46fc7adf4 100644 --- a/ui/jquery.ui.dialog.js +++ b/ui/jquery.ui.dialog.js @@ -676,7 +676,7 @@ $.widget("ui.dialog", { // reuse old instances due to IE memory leak with alpha transparency (see #5185) var $el = this.overlay = ( $.ui.dialog.overlay.oldInstances.pop() || $( "
" ).addClass( "ui-widget-overlay ui-front" ) ); - $el.appendTo( document.body ); + $el.appendTo( this.document[ 0 ].body ); this._on( $el, { mousedown: "_keepFocus" -- cgit v1.2.3