Fix test suite fails for hiding text nodes in F4 and IE9. Update for #6135.

1.7/enhancement_8685
timmywil 2011-04-19 13:45:01 -04:00
parent 825d3d96ce
commit 8d2d94cfba
1 changed files with 5 additions and 3 deletions

8
src/effects.js vendored
View File

@ -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 );
}
}
}