Commit a339096d authored by Richard Gibson's avatar Richard Gibson

No ticket: Small curCSS size optimizations

parent 5ce4b06c
...@@ -14,7 +14,9 @@ function curCSS( elem, name, computed ) { ...@@ -14,7 +14,9 @@ function curCSS( elem, name, computed ) {
// Support: IE9 // Support: IE9
// getPropertyValue is only needed for .css('filter') in IE9, see #12537 // 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 ) { if ( computed ) {
...@@ -44,9 +46,11 @@ function curCSS( elem, name, computed ) { ...@@ -44,9 +46,11 @@ function curCSS( elem, name, computed ) {
} }
} }
// Support: IE return ret !== undefined ?
// IE returns zIndex value as an integer. // Support: IE
return ret === undefined ? ret : ret + ""; // IE returns zIndex value as an integer.
ret + "" :
ret;
} }
return curCSS; return curCSS;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment