mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Dialog: fix small memory leak when having lot's of instances. Fixes #7793 - Small memory leak in ui dialog.
This commit is contained in:
parent
26bcf972e6
commit
42d33f2f86
11
ui/jquery.ui.dialog.js
vendored
11
ui/jquery.ui.dialog.js
vendored
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user