aboutsummaryrefslogtreecommitdiffstats
path: root/src/css.js
diff options
context:
space:
mode:
authorDave Methvin <dave.methvin@gmail.com>2012-07-25 21:44:44 -0400
committerDave Methvin <dave.methvin@gmail.com>2012-07-25 21:44:44 -0400
commitcc6c014125ad2d6c8a705f0d543069ce5802757e (patch)
tree47ba4ec44752445b6180724e7288d4db48697386 /src/css.js
parentd4ec6804e83b2c060a9fc94a044893751c2f640e (diff)
downloadjquery-cc6c014125ad2d6c8a705f0d543069ce5802757e.tar.gz
jquery-cc6c014125ad2d6c8a705f0d543069ce5802757e.zip
Unbreak isHidden args, they're needed by the .filter() call.
Diffstat (limited to 'src/css.js')
-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 );
}