]> source.dussan.org Git - jquery.git/commitdiff
Reorders condition at L65 for efficiency
authorrwldrn <waldron.rick@gmail.com>
Thu, 9 Dec 2010 17:44:52 +0000 (12:44 -0500)
committerrwldrn <waldron.rick@gmail.com>
Thu, 9 Dec 2010 17:44:52 +0000 (12:44 -0500)
src/effects.js

index bac2e1d51393c8d9838b648055b862aa20ee7c4e..feaf02b5d37338cf4912bbd0ffe24f8a98209ece 100644 (file)
@@ -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 );
                          }                               
                        }