mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
MINOR jQuery UI tabs memory leak (see ##7258)
Events with closed in DOM elements get bound to window on tab initialisation, and never unbound. Will be fixed with jQuery UI 1.9
This commit is contained in:
parent
980686ab75
commit
fa900f70d5
7
thirdparty/jquery-ui/jquery-ui.js
vendored
7
thirdparty/jquery-ui/jquery-ui.js
vendored
@ -7753,13 +7753,6 @@ $.widget( "ui.tabs", {
|
|||||||
|
|
||||||
this.load( o.selected );
|
this.load( o.selected );
|
||||||
}
|
}
|
||||||
|
|
||||||
// clean up to avoid memory leaks in certain versions of IE 6
|
|
||||||
// TODO: namespace this event
|
|
||||||
$( window ).bind( "unload", function() {
|
|
||||||
self.lis.add( self.anchors ).unbind( ".tabs" );
|
|
||||||
self.lis = self.anchors = self.panels = null;
|
|
||||||
});
|
|
||||||
// update selected after add/remove
|
// update selected after add/remove
|
||||||
} else {
|
} else {
|
||||||
o.selected = this.lis.index( this.lis.filter( ".ui-tabs-selected" ) );
|
o.selected = this.lis.index( this.lis.filter( ".ui-tabs-selected" ) );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user