Skip to content

Commit a9d4b52

Browse files
committed
Tabs: Removed some animation cleanup code that doesn't appear to be necessary.
1 parent 1655079 commit a9d4b52

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

ui/jquery.ui.tabs.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -286,12 +286,8 @@ $.widget( "ui.tabs", {
286286
}
287287
},
288288

289-
// Reset certain styles left over from animation
290-
// and prevent IE's ClearType bug...
289+
// TODO: remove once jQuery core properly removes filters - see #4621
291290
_resetStyle: function ( $el, fx ) {
292-
$el.css( "display", function( oldValue ) {
293-
return oldValue === "none" ? oldValue : "";
294-
});
295291
if ( !$.support.opacity && fx.opacity ) {
296292
$el[ 0 ].style.removeAttribute( "filter" );
297293
}
@@ -384,8 +380,6 @@ $.widget( "ui.tabs", {
384380

385381
if ( toShow.length && that.showFx ) {
386382
toShow
387-
// TODO: why are we hiding? old code?
388-
.hide()
389383
.animate( that.showFx, that.showFx.duration || "normal", function() {
390384
that._resetStyle( $( this ), that.showFx );
391385
complete();

0 commit comments

Comments
 (0)