Skip to content
Permalink
Browse files

Removing unnecessary parens from :hidden.

  • Loading branch information
jeresig committed Dec 3, 2009
1 parent 0f0fd1a commit 47293ebe15d7c475d432b843fa9a37800701055f
Showing with 4 additions and 3 deletions.
  1. +4 −3 src/css.js
@@ -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){

0 comments on commit 47293eb

Please sign in to comment.
You can’t perform that action at this time.