From fa900f70d5d42a0a2985edaf01620075b5ff2569 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Thu, 14 Jun 2012 17:17:09 +0200 Subject: [PATCH] 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 --- thirdparty/jquery-ui/jquery-ui.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/thirdparty/jquery-ui/jquery-ui.js b/thirdparty/jquery-ui/jquery-ui.js index 9a386e4da..8d8ae6ba3 100755 --- a/thirdparty/jquery-ui/jquery-ui.js +++ b/thirdparty/jquery-ui/jquery-ui.js @@ -7753,13 +7753,6 @@ $.widget( "ui.tabs", { 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 } else { o.selected = this.lis.index( this.lis.filter( ".ui-tabs-selected" ) );