aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard Gibson <richard.gibson@gmail.com>2013-10-15 11:12:31 -0400
committerRichard Gibson <richard.gibson@gmail.com>2013-10-15 12:28:32 -0400
commita339096d6a9d0313c2184de0d626e2c7e127955b (patch)
tree0e3e279ce796605c924467118b43caf120ed653a /src
parent5ce4b06c285bd8cf52eaff0f39e0b9192a927873 (diff)
downloadjquery-a339096d6a9d0313c2184de0d626e2c7e127955b.tar.gz
jquery-a339096d6a9d0313c2184de0d626e2c7e127955b.zip
No ticket: Small curCSS size optimizations
Diffstat (limited to 'src')
-rw-r--r--src/css/curCSS.js12
1 files changed, 8 insertions, 4 deletions
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;