Skip to content

Commit

Permalink
Fix test suite fails for hiding text nodes in F4 and IE9. Update for …
Browse files Browse the repository at this point in the history
…#6135.
  • Loading branch information
timmywil committed Apr 19, 2011
1 parent 825d3d9 commit 8d2d94c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/effects.js
Expand Up @@ -71,10 +71,12 @@ jQuery.fn.extend({

} else {
for ( var i = 0, j = this.length; i < j; i++ ) {
var display = jQuery.css( this[i], "display" );
if ( this[i].style ) {
var display = jQuery.css( this[i], "display" );

if ( display !== "none" && !jQuery._data( this[i], "olddisplay" ) ) {
jQuery._data( this[i], "olddisplay", display );
if ( display !== "none" && !jQuery._data( this[i], "olddisplay" ) ) {
jQuery._data( this[i], "olddisplay", display );
}
}
}

Expand Down

0 comments on commit 8d2d94c

Please sign in to comment.