]> source.dussan.org Git - jquery-ui.git/commitdiff
Tabs: Don't explicitly remove filter when animating opacity. Fixes #4621 - Tabs:...
authorScott González <scott.gonzalez@gmail.com>
Fri, 6 Apr 2012 13:02:39 +0000 (09:02 -0400)
committerScott González <scott.gonzalez@gmail.com>
Fri, 6 Apr 2012 13:03:04 +0000 (09:03 -0400)
ui/jquery.ui.tabs.js

index fb384e5639880b328b4a92bc21dd0800c35e4b06..e42bcb1a2b7ca3dce6db5577b8dc3afeb82dd15e 100644 (file)
@@ -291,13 +291,6 @@ $.widget( "ui.tabs", {
                }
        },
 
-       // TODO: remove once jQuery core properly removes filters - see #4621
-       _resetStyle: function ( $el, fx ) {
-               if ( !$.support.opacity && fx.opacity ) {
-                       $el[ 0 ].style.removeAttribute( "filter" );
-               }
-       },
-
        _setupEvents: function( event ) {
                // attach tab event handler, unbind to avoid duplicates from former tabifying...
                this.anchors.unbind( ".tabs" );
@@ -386,7 +379,6 @@ $.widget( "ui.tabs", {
                        if ( toShow.length && that.showFx ) {
                                toShow
                                        .animate( that.showFx, that.showFx.duration || "normal", function() {
-                                               that._resetStyle( $( this ), that.showFx );
                                                complete();
                                        });
                        } else {
@@ -399,7 +391,6 @@ $.widget( "ui.tabs", {
                if ( toHide.length && that.hideFx ) {
                        toHide.animate( that.hideFx, that.hideFx.duration || "normal", function() {
                                eventData.oldTab.closest( "li" ).removeClass( "ui-tabs-active ui-state-active" );
-                               that._resetStyle( $( this ), that.hideFx );
                                show();
                        });
                } else {