aboutsummaryrefslogtreecommitdiffstats
path: root/src/effects.js
diff options
context:
space:
mode:
authorjeresig <jeresig@gmail.com>2010-10-27 14:35:26 -0400
committerjeresig <jeresig@gmail.com>2010-10-27 14:35:26 -0400
commit6e7a4e73a2d821fd2a7b71e080b9284909af1596 (patch)
tree19ffdc4781d67787f3b8ee7134d85eb4890abaa0 /src/effects.js
parent6ab402dced3339d24ad007ecf3a6c3f5af3e7610 (diff)
downloadjquery-6e7a4e73a2d821fd2a7b71e080b9284909af1596.tar.gz
jquery-6e7a4e73a2d821fd2a7b71e080b9284909af1596.zip
Calling .hide().show() on a stylesheet-hidden element wasn't bringing it back. Fixes #7331.
Diffstat (limited to 'src/effects.js')
-rw-r--r--src/effects.js2
1 files changed, 1 insertions, 1 deletions
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