Skip to content
Permalink
Browse files

Dialog: Use consistent code for appending to body

  • Loading branch information...
jzaefferer committed Nov 29, 2012
1 parent eb938a6 commit 24d9141597f16fdc84b1412683a7e66388f5f622
Showing with 1 addition and 1 deletion.
  1. +1 −1 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() || $( "<div>" ).addClass( "ui-widget-overlay ui-front" ) );

$el.appendTo( document.body );
$el.appendTo( this.document[ 0 ].body );

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

0 comments on commit 24d9141

Please sign in to comment.
You can’t perform that action at this time.