From cc6c014125ad2d6c8a705f0d543069ce5802757e Mon Sep 17 00:00:00 2001 From: Dave Methvin Date: Wed, 25 Jul 2012 21:44:44 -0400 Subject: [PATCH] Unbreak isHidden args, they're needed by the .filter() call. --- src/css.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ); } -- 2.39.5