Dialog: Use consistent code for appending to body

This commit is contained in:
Jörn Zaefferer 2012-11-29 17:40:31 +01:00
parent eb938a67a1
commit 24d9141597

View File

@ -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() || $( "<div>" ).addClass( "ui-widget-overlay ui-front" ) );
$el.appendTo( document.body );
$el.appendTo( this.document[ 0 ].body );
this._on( $el, {
mousedown: "_keepFocus"