aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjeresig <jeresig@gmail.com>2009-12-03 11:59:59 -0500
committerjeresig <jeresig@gmail.com>2009-12-03 11:59:59 -0500
commit47293ebe15d7c475d432b843fa9a37800701055f (patch)
tree81dabcfe8a957c12d09eae0e7a9b6a18392b7610
parent0f0fd1aee34b81411419ae3b152e03dfdf58b4f4 (diff)
downloadjquery-47293ebe15d7c475d432b843fa9a37800701055f.tar.gz
jquery-47293ebe15d7c475d432b843fa9a37800701055f.zip
Removing unnecessary parens from :hidden.
-rw-r--r--src/css.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/css.js b/src/css.js
index ceed4e60b..cf7925104 100644
--- a/src/css.js
+++ b/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){