diff options
author | jeresig <jeresig@gmail.com> | 2010-10-27 14:35:26 -0400 |
---|---|---|
committer | jeresig <jeresig@gmail.com> | 2010-10-27 14:35:26 -0400 |
commit | 6e7a4e73a2d821fd2a7b71e080b9284909af1596 (patch) | |
tree | 19ffdc4781d67787f3b8ee7134d85eb4890abaa0 /src/effects.js | |
parent | 6ab402dced3339d24ad007ecf3a6c3f5af3e7610 (diff) | |
download | jquery-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.js | 2 |
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 |