aboutsummaryrefslogtreecommitdiffstats
path: root/src/effects.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/effects.js')
-rw-r--r--src/effects.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/effects.js b/src/effects.js
index 51ce0c577..bac2e1d51 100644
--- a/src/effects.js
+++ b/src/effects.js
@@ -61,10 +61,10 @@ jQuery.fn.extend({
} else {
for ( var i = 0, j = this.length; i < j; i++ ) {
var display = jQuery.css( this[i], "display" );
-
- if ( display !== "none" ) {
- jQuery.data( this[i], "olddisplay", display );
- }
+
+ if ( !jQuery.data( this[i], "olddisplay" ) && display !== "none" ) {
+ jQuery.data( this[i], "olddisplay", display );
+ }
}
// Set the display of the elements in a second loop