From: Scott González Date: Fri, 6 Apr 2012 13:02:39 +0000 (-0400) Subject: Tabs: Don't explicitly remove filter when animating opacity. Fixes #4621 - Tabs:... X-Git-Tag: 1.9.0m8~150 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c0f5db539403f1b9c5a80db75d127d4465f911df;p=jquery-ui.git Tabs: Don't explicitly remove filter when animating opacity. Fixes #4621 - Tabs: Don't forcefully remove filter attribute. --- diff --git a/ui/jquery.ui.tabs.js b/ui/jquery.ui.tabs.js index fb384e563..e42bcb1a2 100644 --- a/ui/jquery.ui.tabs.js +++ b/ui/jquery.ui.tabs.js @@ -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 {