aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/css.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/css.js b/src/css.js
index 744e7a545..85c73c090 100644
--- a/src/css.js
+++ b/src/css.js
@@ -43,7 +43,8 @@ function vendorPropName( style, name ) {
return origName;
}
-function isHidden( elem ) {
+function isHidden( elem, el ) {
+ elem = el || elem;
return jQuery.css( elem, "display" ) === "none" || !jQuery.contains( elem.ownerDocument.documentElement, elem );
}