From 8f2667f4c09d14de413cac1e3c5fc5783521b0e0 Mon Sep 17 00:00:00 2001 From: rwldrn Date: Tue, 9 Nov 2010 18:20:27 -0500 Subject: [PATCH] Clean #7397; Removed unnec. var declaration --- src/effects.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/effects.js b/src/effects.js index f9c682c9..bac2e1d5 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 ); } }