Removing unnecessary parens from :hidden.
This commit is contained in:
parent
0f0fd1aee3
commit
47293ebe15
1 changed files with 4 additions and 3 deletions
|
@ -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){
|
||||
|
|
Loading…
Reference in a new issue