Merge branch 'bug_7397' of https://github.com/rwldrn/jquery into rwldrn-bug_7397
[jquery.git] / src / effects.js
index 067383b..6007074 100644 (file)
@@ -61,8 +61,8 @@ jQuery.fn.extend({
                } else {
                        for ( var i = 0, j = this.length; i < j; i++ ) {
                                var display = jQuery.css( this[i], "display" );
-
-                               if ( display !== "none" ) {
+        
+                               if ( display !== "none" && !jQuery.data( this[i], "olddisplay" ) ) {
                                        jQuery.data( this[i], "olddisplay", display );
                                }
                        }