Skip to content
Permalink
Browse files

Tabs: Don't explicitly remove filter when animating opacity. Fixes #4…

…621 - Tabs: Don't forcefully remove filter attribute.
  • Loading branch information...
scottgonzalez committed Apr 6, 2012
1 parent cd90e57 commit c0f5db539403f1b9c5a80db75d127d4465f911df
Showing with 0 additions and 9 deletions.
  1. +0 −9 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 {

0 comments on commit c0f5db5

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