]> source.dussan.org Git - jquery.git/commitdiff
Removing unnecessary parens from :hidden.
authorjeresig <jeresig@gmail.com>
Thu, 3 Dec 2009 16:59:59 +0000 (11:59 -0500)
committerjeresig <jeresig@gmail.com>
Thu, 3 Dec 2009 16:59:59 +0000 (11:59 -0500)
src/css.js

index ceed4e60b83c3e82f9f0244950f529be6007a7be..cf792510401c1aed91ba26610634a49531bcddcc 100644 (file)
@@ -203,11 +203,12 @@ if ( jQuery.expr && jQuery.expr.filters ) {
        jQuery.expr.filters.hidden = function(elem){
                var width = elem.offsetWidth, height = elem.offsetHeight,
                         force = /^tr$/i.test( elem.nodeName ); // ticket #4512
-               return ( width === 0 && height === 0 && !force ) ?
+
+               return width === 0 && height === 0 && !force ?
                        true :
-                               ( width !== 0 && height !== 0 && !force ) ?
+                               width !== 0 && height !== 0 && !force ?
                                        false :
-                                               !!( jQuery.curCSS(elem, "display") === "none" );
+                                               jQuery.curCSS(elem, "display") === "none";
        };
 
        jQuery.expr.filters.visible = function(elem){