aboutsummaryrefslogtreecommitdiffstats
path: root/src/effects.js
diff options
context:
space:
mode:
authorRick Waldron <waldron.rick@gmail.com>2011-10-04 15:53:19 -0400
committertimmywil <timmywillisn@gmail.com>2011-10-04 15:53:19 -0400
commit22f2e8b3dc18dede5f1ccb28cbdf8cb5bcde115f (patch)
tree33b96a4af9188a9220a2547033b5dff16a038707 /src/effects.js
parent749d32a290d8d22a662ffc18db2fb035b401564d (diff)
downloadjquery-22f2e8b3dc18dede5f1ccb28cbdf8cb5bcde115f.tar.gz
jquery-22f2e8b3dc18dede5f1ccb28cbdf8cb5bcde115f.zip
Landing pull request 530. Fixes coniditional path for tr, td defaultDisplay() calls. Fixes #10416.
More Details: - https://github.com/jquery/jquery/pull/530 - http://bugs.jquery.com/ticket/10416
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 e14235bc4..67ac8bb41 100644
--- a/src/effects.js
+++ b/src/effects.js
@@ -38,7 +38,7 @@ jQuery.fn.extend({
// Set elements which have been overridden with display: none
// in a stylesheet to whatever the default browser style is
// for such an element
- if ( display === "" && jQuery.css( elem, "display" ) === "none" ) {
+ if ( display === "none" || ( display === "" && jQuery.css( elem, "display" ) === "none" ) ) {
jQuery._data(elem, "olddisplay", defaultDisplay(elem.nodeName));
}
}