From: Richard Gibson Date: Tue, 15 Oct 2013 15:12:31 +0000 (-0400) Subject: No ticket: Small curCSS size optimizations X-Git-Tag: 2.1.0-beta2~56 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a339096d6a9d0313c2184de0d626e2c7e127955b;p=jquery.git No ticket: Small curCSS size optimizations --- diff --git a/src/css/curCSS.js b/src/css/curCSS.js index c30519d3d..abcc8cb7f 100644 --- a/src/css/curCSS.js +++ b/src/css/curCSS.js @@ -14,7 +14,9 @@ function curCSS( elem, name, computed ) { // Support: IE9 // getPropertyValue is only needed for .css('filter') in IE9, see #12537 - ret = computed ? computed.getPropertyValue( name ) || computed[ name ] : undefined; + if ( computed ) { + ret = computed.getPropertyValue( name ) || computed[ name ]; + } if ( computed ) { @@ -44,9 +46,11 @@ function curCSS( elem, name, computed ) { } } - // Support: IE - // IE returns zIndex value as an integer. - return ret === undefined ? ret : ret + ""; + return ret !== undefined ? + // Support: IE + // IE returns zIndex value as an integer. + ret + "" : + ret; } return curCSS;