diff options
author | Dave Methvin <dave.methvin@gmail.com> | 2011-11-21 20:53:56 -0500 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2011-11-21 20:53:56 -0500 |
commit | 3586ea28a8303a8de9f7f94da9fe9c4272b3d8ec (patch) | |
tree | b0e01e0d8cd1f168d272d13c34d1c80f88732cc3 /src | |
parent | ca08d93b72d63d5c6d719f818f8f1ca401dc3cfe (diff) | |
download | jquery-3586ea28a8303a8de9f7f94da9fe9c4272b3d8ec.tar.gz jquery-3586ea28a8303a8de9f7f94da9fe9c4272b3d8ec.zip |
Revert "Landing pull request 581. Updates original patch by Orkel. Fixes #10006."
This reverts commit 299bc655c90cc89652417675f976ae1bfefc4d8b.
Diffstat (limited to 'src')
-rw-r--r-- | src/effects.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/effects.js b/src/effects.js index 2dad23eba..5c6a20bbb 100644 --- a/src/effects.js +++ b/src/effects.js @@ -38,8 +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") || - !jQuery.contains( elem.ownerDocument.documentElement, elem ) ) { + if ( display === "" && jQuery.css(elem, "display") === "none" ) { jQuery._data( elem, "olddisplay", defaultDisplay(elem.nodeName) ); } } |