Skip to content
Permalink
Browse files

Tabs: Removed some animation cleanup code that doesn't appear to be n…

…ecessary.
  • Loading branch information...
scottgonzalez committed May 17, 2011
1 parent 1655079 commit a9d4b52836b0960f1ed3d31ef224ff1752236209
Showing with 1 addition and 7 deletions.
  1. +1 −7 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();

0 comments on commit a9d4b52

Please sign in to comment.
You can’t perform that action at this time.