Skip to content
Permalink
Browse files
No ticket: Small curCSS size optimizations
  • Loading branch information
gibson042 committed Oct 15, 2013
1 parent 5ce4b06 commit a339096d6a9d0313c2184de0d626e2c7e127955b
Showing 1 changed file with 8 additions and 4 deletions.
@@ -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;

0 comments on commit a339096

Please sign in to comment.