aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.dialog.js
diff options
context:
space:
mode:
authorFlorian Gutmann <blackfeet@gmx.at>2011-10-14 18:12:21 +0300
committerScott González <scott.gonzalez@gmail.com>2011-10-14 11:18:48 -0400
commit42d33f2f86d48f5f82a640a6c57c566a4e84cdda (patch)
treef0537e17879819dad7efdd734f21df9be20db6ab /ui/jquery.ui.dialog.js
parent26bcf972e681813d00abbe0603267ff4bebac311 (diff)
downloadjquery-ui-42d33f2f86d48f5f82a640a6c57c566a4e84cdda.tar.gz
jquery-ui-42d33f2f86d48f5f82a640a6c57c566a4e84cdda.zip
Dialog: fix small memory leak when having lot's of instances. Fixes #7793 - Small memory leak in ui dialog.
Diffstat (limited to 'ui/jquery.ui.dialog.js')
-rw-r--r--ui/jquery.ui.dialog.js11
1 files changed, 5 insertions, 6 deletions
diff --git a/ui/jquery.ui.dialog.js b/ui/jquery.ui.dialog.js
index 065d640fb..46320426a 100644
--- a/ui/jquery.ui.dialog.js
+++ b/ui/jquery.ui.dialog.js
@@ -715,12 +715,11 @@ $.extend( $.ui.dialog.overlay, {
$( window ).bind( "resize.dialog-overlay", $.ui.dialog.overlay.resize );
}
- var $el = ( this.oldInstances.pop() || $( "<div>" ).addClass( "ui-widget-overlay" ) )
- .appendTo( document.body )
- .css({
- width: this.width(),
- height: this.height()
- });
+ var $el = ( this.oldInstances.pop() || $( "<div>" ).addClass( "ui-widget-overlay" ) );
+ $el.appendTo( document.body ).css({
+ width: this.width(),
+ height: this.height()
+ });
if ( $.fn.bgiframe ) {
$el.bgiframe();