From 6e7a4e73a2d821fd2a7b71e080b9284909af1596 Mon Sep 17 00:00:00 2001 From: jeresig Date: Wed, 27 Oct 2010 14:35:26 -0400 Subject: Calling .hide().show() on a stylesheet-hidden element wasn't bringing it back. Fixes #7331. --- src/effects.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/effects.js') diff --git a/src/effects.js b/src/effects.js index b73aa7247..d87ba8f5d 100644 --- a/src/effects.js +++ b/src/effects.js @@ -28,7 +28,7 @@ jQuery.fn.extend({ // Reset the inline display of this element to learn if it is // being hidden by cascaded rules or not if ( !jQuery.data(elem, "olddisplay") && display === "none" ) { - elem.style.display = ""; + display = elem.style.display = ""; } // Set elements which have been overridden with display: none -- cgit v1.2.3