Clean #7397; Removed unnec. var declaration

This commit is contained in:
rwldrn 2010-11-09 18:20:27 -05:00
parent 118c8c4600
commit 8f2667f4c0

5
src/effects.js vendored
View file

@ -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 );
}
}