aboutsummaryrefslogtreecommitdiffstats
path: root/src/effects.js
diff options
context:
space:
mode:
authorrwldrn <waldron.rick@gmail.com>2010-11-09 18:20:27 -0500
committerrwldrn <waldron.rick@gmail.com>2010-11-09 18:20:27 -0500
commit8f2667f4c09d14de413cac1e3c5fc5783521b0e0 (patch)
tree95279ad7d051c2071ce2222e8b314ef7c9fb15ce /src/effects.js
parent118c8c4600b62d6de2b0248ae27626da74dcf5b2 (diff)
downloadjquery-8f2667f4c09d14de413cac1e3c5fc5783521b0e0.tar.gz
jquery-8f2667f4c09d14de413cac1e3c5fc5783521b0e0.zip
Clean #7397; Removed unnec. var declaration
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 );
}
}