diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/effects.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/effects.js b/src/effects.js index 241dbd036..8662df5b9 100644 --- a/src/effects.js +++ b/src/effects.js @@ -49,9 +49,10 @@ jQuery.fn.extend({ } else { for ( var i = 0, j = this.length; i < j; i++ ) { - var old = jQuery.data(this[i], "olddisplay"); - if ( !old ) { - jQuery.data( this[i], "olddisplay", jQuery.css( this[i], "display" ) ); + var display = jQuery.css( this[i], "display" ); + + if ( display !== "none" ) { + jQuery.data( this[i], "olddisplay", display ); } } |