Skip to content
Permalink
Browse files

Reorders condition at L65 for efficiency

  • Loading branch information...
rwaldron committed Dec 9, 2010
1 parent 2a23650 commit 00f1dfdd57fd8478688f9d201e539e0bf3946be2
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/effects.js
@@ -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 );
}
}

0 comments on commit 00f1dfd

Please sign in to comment.
You can’t perform that action at this time.