diff options
author | rwldrn <waldron.rick@gmail.com> | 2010-12-09 12:44:52 -0500 |
---|---|---|
committer | rwldrn <waldron.rick@gmail.com> | 2010-12-09 12:44:52 -0500 |
commit | 00f1dfdd57fd8478688f9d201e539e0bf3946be2 (patch) | |
tree | 35805ed52001c51de65a3bd92be70cab0ba63670 /src/effects.js | |
parent | 2a23650a19ed4db2d031697638bdd71c06f44492 (diff) | |
download | jquery-00f1dfdd57fd8478688f9d201e539e0bf3946be2.tar.gz jquery-00f1dfdd57fd8478688f9d201e539e0bf3946be2.zip |
Reorders condition at L65 for efficiency
Diffstat (limited to 'src/effects.js')
-rw-r--r-- | src/effects.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/effects.js b/src/effects.js index bac2e1d51..feaf02b5d 100644 --- a/src/effects.js +++ b/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 ); } } |