Skip to content

Commit

Permalink
Reorders condition at L65 for efficiency
Browse files Browse the repository at this point in the history
  • Loading branch information
rwaldron committed Dec 9, 2010
1 parent 2a23650 commit 00f1dfd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/effects.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ jQuery.fn.extend({
for ( var i = 0, j = this.length; i < j; i++ ) {
var display = jQuery.css( this[i], "display" );

if ( !jQuery.data( this[i], "olddisplay" ) && display !== "none" ) {
jQuery.data( this[i], "olddisplay", display );
if ( display !== "none" && !jQuery.data( this[i], "olddisplay" ) ) {
jQuery.data( this[i], "olddisplay", display );
}
}

Expand Down

0 comments on commit 00f1dfd

Please sign in to comment.