]> source.dussan.org Git - jquery-ui.git/commitdiff
Tabs: Removed some animation cleanup code that doesn't appear to be necessary.
authorScott González <scott.gonzalez@gmail.com>
Tue, 17 May 2011 17:15:44 +0000 (13:15 -0400)
committerScott González <scott.gonzalez@gmail.com>
Tue, 17 May 2011 17:15:44 +0000 (13:15 -0400)
ui/jquery.ui.tabs.js

index 7702c1e4b75ca1219203e8cb661461812e37ccfc..84d623f62b0be52315c2bfeb20c55ea0ad7cd39a 100644 (file)
@@ -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();