Skip to content

Commit

Permalink
Tabs: Don't explicitly remove filter when animating opacity. Fixes #4…
Browse files Browse the repository at this point in the history
…621 - Tabs: Don't forcefully remove filter attribute.
  • Loading branch information
scottgonzalez committed Apr 6, 2012
1 parent cd90e57 commit c0f5db5
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions ui/jquery.ui.tabs.js
Expand Up @@ -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" );
Expand Down Expand Up @@ -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 {
Expand All @@ -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 {
Expand Down

0 comments on commit c0f5db5

Please sign in to comment.