aboutsummaryrefslogtreecommitdiffstats
path: root/src/effects.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/effects.js')
-rw-r--r--src/effects.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/effects.js b/src/effects.js
index f9c682c9f..bac2e1d51 100644
--- a/src/effects.js
+++ b/src/effects.js
@@ -60,10 +60,9 @@ jQuery.fn.extend({
} else {
for ( var i = 0, j = this.length; i < j; i++ ) {
- var display = jQuery.css( this[i], "display" ),
- old = jQuery.data( this[i], "olddisplay" );
+ var display = jQuery.css( this[i], "display" );
- if ( !old && display !== "none" ) {
+ if ( !jQuery.data( this[i], "olddisplay" ) && display !== "none" ) {
jQuery.data( this[i], "olddisplay", display );
}
}