mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Dialog: Use consistent code for appending to body
This commit is contained in:
parent
eb938a67a1
commit
24d9141597
2
ui/jquery.ui.dialog.js
vendored
2
ui/jquery.ui.dialog.js
vendored
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user