From: Dave Methvin Date: Thu, 26 Jul 2012 01:44:44 +0000 (-0400) Subject: Unbreak isHidden args, they're needed by the .filter() call. X-Git-Tag: 1.8rc1~5 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=cc6c014125ad2d6c8a705f0d543069ce5802757e;p=jquery.git Unbreak isHidden args, they're needed by the .filter() call. --- 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 ); }