aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2012-11-29 17:40:31 +0100
committerJörn Zaefferer <joern.zaefferer@gmail.com>2012-11-29 17:40:31 +0100
commit24d9141597f16fdc84b1412683a7e66388f5f622 (patch)
treeebb2128cbd14c61e66296f7126fccd4cf4962870 /ui
parenteb938a67a1f8ee0151fd6414d22a9e260894c935 (diff)
downloadjquery-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.js2
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"