diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2012-11-29 17:40:31 +0100 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2012-11-29 17:40:31 +0100 |
commit | 24d9141597f16fdc84b1412683a7e66388f5f622 (patch) | |
tree | ebb2128cbd14c61e66296f7126fccd4cf4962870 /ui | |
parent | eb938a67a1f8ee0151fd6414d22a9e260894c935 (diff) | |
download | jquery-ui-24d9141597f16fdc84b1412683a7e66388f5f622.tar.gz jquery-ui-24d9141597f16fdc84b1412683a7e66388f5f622.zip |
Dialog: Use consistent code for appending to body
Diffstat (limited to 'ui')
-rw-r--r-- | ui/jquery.ui.dialog.js | 2 |
1 files changed, 1 insertions, 1 deletions
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() || $( "<div>" ).addClass( "ui-widget-overlay ui-front" ) ); - $el.appendTo( document.body ); + $el.appendTo( this.document[ 0 ].body ); this._on( $el, { mousedown: "_keepFocus" |