]> source.dussan.org Git - jquery.git/commitdiff
Unbreak isHidden args, they're needed by the .filter() call.
authorDave Methvin <dave.methvin@gmail.com>
Thu, 26 Jul 2012 01:44:44 +0000 (21:44 -0400)
committerDave Methvin <dave.methvin@gmail.com>
Thu, 26 Jul 2012 01:44:44 +0000 (21:44 -0400)
src/css.js

index 744e7a545e2846a34fffe5f2dd49053c6757fce6..85c73c090b3913ee9118e99d31209c581c8b69d5 100644 (file)
@@ -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 );
 }