Skip to content

Commit c0f5db5

Browse files
committed
Tabs: Don't explicitly remove filter when animating opacity. Fixes #4621 - Tabs: Don't forcefully remove filter attribute.
1 parent cd90e57 commit c0f5db5

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

ui/jquery.ui.tabs.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -291,13 +291,6 @@ $.widget( "ui.tabs", {
291291
}
292292
},
293293

294-
// TODO: remove once jQuery core properly removes filters - see #4621
295-
_resetStyle: function ( $el, fx ) {
296-
if ( !$.support.opacity && fx.opacity ) {
297-
$el[ 0 ].style.removeAttribute( "filter" );
298-
}
299-
},
300-
301294
_setupEvents: function( event ) {
302295
// attach tab event handler, unbind to avoid duplicates from former tabifying...
303296
this.anchors.unbind( ".tabs" );
@@ -386,7 +379,6 @@ $.widget( "ui.tabs", {
386379
if ( toShow.length && that.showFx ) {
387380
toShow
388381
.animate( that.showFx, that.showFx.duration || "normal", function() {
389-
that._resetStyle( $( this ), that.showFx );
390382
complete();
391383
});
392384
} else {
@@ -399,7 +391,6 @@ $.widget( "ui.tabs", {
399391
if ( toHide.length && that.hideFx ) {
400392
toHide.animate( that.hideFx, that.hideFx.duration || "normal", function() {
401393
eventData.oldTab.closest( "li" ).removeClass( "ui-tabs-active ui-state-active" );
402-
that._resetStyle( $( this ), that.hideFx );
403394
show();
404395
});
405396
} else {

0 commit comments

Comments
 (0)