Permalink
Browse files

Clean #7397; Removed unnec. var declaration

  • Loading branch information...
1 parent 118c8c4 commit 8f2667f4c09d14de413cac1e3c5fc5783521b0e0 @rwaldron rwaldron committed Nov 9, 2010
Showing with 2 additions and 3 deletions.
  1. +2 −3 src/effects.js
View
@@ -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 );
}
}

0 comments on commit 8f2667f

Please sign in to comment.