fix show issue in IE 6. "olddisplay" is sometimes undefined and IE 6 does not like...
authorBrandon Aaron <brandon.aaron@gmail.com>
Mon, 16 Feb 2009 21:20:51 +0000 (21:20 +0000)
committerBrandon Aaron <brandon.aaron@gmail.com>
Mon, 16 Feb 2009 21:20:51 +0000 (21:20 +0000)
src/fx.js

index 724e21f..c949bdc 100644 (file)
--- a/src/fx.js
+++ b/src/fx.js
@@ -46,12 +46,12 @@ jQuery.fn.extend({
                                        
                                        jQuery.data(this[i], "olddisplay", display);
                                }
+                       }
 
-                               // Set the display of the elements in a second loop
-                               // to avoid the constant reflow
-                               for ( var i = 0, l = this.length; i < l; i++ ){
-                                       this[i].style.display = jQuery.data(this[i], "olddisplay");
-                               }
+                       // Set the display of the elements in a second loop
+                       // to avoid the constant reflow
+                       for ( var i = 0, l = this.length; i < l; i++ ){
+                               this[i].style.display = jQuery.data(this[i], "olddisplay") || "";
                        }
                        
                        return this;