From a9d4b52836b0960f1ed3d31ef224ff1752236209 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Scott=20Gonz=C3=A1lez?= Date: Tue, 17 May 2011 13:15:44 -0400 Subject: [PATCH] Tabs: Removed some animation cleanup code that doesn't appear to be necessary. --- ui/jquery.ui.tabs.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/ui/jquery.ui.tabs.js b/ui/jquery.ui.tabs.js index 7702c1e4b..84d623f62 100644 --- a/ui/jquery.ui.tabs.js +++ b/ui/jquery.ui.tabs.js @@ -286,12 +286,8 @@ $.widget( "ui.tabs", { } }, - // Reset certain styles left over from animation - // and prevent IE's ClearType bug... + // TODO: remove once jQuery core properly removes filters - see #4621 _resetStyle: function ( $el, fx ) { - $el.css( "display", function( oldValue ) { - return oldValue === "none" ? oldValue : ""; - }); if ( !$.support.opacity && fx.opacity ) { $el[ 0 ].style.removeAttribute( "filter" ); } @@ -384,8 +380,6 @@ $.widget( "ui.tabs", { if ( toShow.length && that.showFx ) { toShow - // TODO: why are we hiding? old code? - .hide() .animate( that.showFx, that.showFx.duration || "normal", function() { that._resetStyle( $( this ), that.showFx ); complete(); -- 2.39.5